Posted by Davide on 03/24/07 08:06
Hi All, I'm trying to use explode to separate the result of a textual
file, but it explode me only the first row.
the foo.txt is
pippo pluto
pluto pippo
pippo pippo
....
I use this script found in http://it2.php.net/manual/en/function.explode.php
$pizza = "/var/www/foo.txt";
$pieces = explode(" ", $pizza);
echo $pieces[0]; // piece1
echo $pieces[1]; // piece2
Navigation:
[Reply to this message]
|