Posted by Oli Filth on 06/01/06 17:28
rlee0001 said the following on 01/06/2006 18:31:
> This is seriously blowing my mind.
>
> $a = array('a', 'b', 'c');
> for ($i=0; $i<=count($a); $i++) {
> echo 'In FOR: '.$a[0].' - '.$a[1].' - '.$a[2]."\n";
> if ($a[$i] = 'a') {
> echo 'In IF: '.$a[0].' - '.$a[1].' - '.$a[2]."\n";
> }
> }
>
"==" vs. "="...
--
Oli
Navigation:
[Reply to this message]
|