Re: [PHP] explode, split, or what?

2003-06-19 Thread Steve Keller
At 6/19/2003 10:41 PM, Kyle Babich wrote: > Inside of another file I'm trying to read setup.txt into $rawSetupData and explode that with \r\n's > into an array called $setupData. Why on earth? http://us4.php.net/file > > if (file_exists("setup.txt")) { >$rawSetupData = readfile("setup.txt

RE: [PHP] explode, split, or what?

2003-06-19 Thread Sævar Öfjörð
why don't you just do this? *** *** file() returns the file in an array, each line as new value, so line nr. 1 is $line[0], line nr. 2 is $line[1] etc... I added stripslashes() on the output so that you won't get "John\'s X Log" Sævar - ICELAND -- PHP General Mailing List (http://www.php.n