Bad code.
Take the ';' off the end of the foreach...

ROBERT MCPEAK wrote:

>Why is this code:
>
><?php
>               
>                       $bob=array(1,2,3,5,6);
>                       
>                       foreach($bob as $foo);
>                       {
>                       echo "$foo<BR>";
>                       }
>                       ?>
>
>Rendering only "6".  That's it.  Just "6".  What am I missing here?
>
>  
>

-- 
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/




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

Reply via email to