On Tue, 2004-02-17 at 11:03, John Taylor-Johnston wrote:
> Can I while this? Not sure how to go about it?
> 
> $pizza  = "piece1 piece2 piece3 piece4 piece5 piece6";
> $pieces = explode(" ", $pizza);
> echo $pieces[0]; // piece1
> echo $pieces[1]; // piece2

Try while(each($pieces)) or foreach($pieces as $piece)

-- 
Adam Bregenzer
[EMAIL PROTECTED]
http://adam.bregenzer.net/

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

Reply via email to