The manual states:

$pizza = "piece1 piece2 piece3 piece4 piece5 piece6";
$pieces = explode(" ", $pizza);

So, if I want to be able to echo piece1 to the screen at a later stage,
I would go:

echo $pieces[0];

$first_piece = $pieces[0];
echo $first_piece;


Just want to make sure I understand it before I try to use it...

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to