Don't put a semicolon after the foreach.
Adam Voigt
[EMAIL PROTECTED]
On Tue, 2002-08-27 at 11:07, 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?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php