At 11:32 AM 7/29/01 -0700, Rasmus Lerdorf wrote:
> > <?php
> > $a = array("a","b","c");
> >
> > for ($c=0 ; $c < count($a) ; ++$c);{
>
>Get rid of the ; there ^^^
Also,
echo("$a[$c] <BR>\n");
will probably not work.
Try:
echo $a[$c]."<br>\n";
or, using your syntax, echo($a[$c]."<br>\n");
You may want to do $c++ rather than ++$c, if only to get into the habit of
thinking along the proper lines of pre- and post- incrementing.
-Mike
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]