|
Posted by Geoff Berrow on 10/07/39 11:18
I noticed that Message-ID: <8i5qe.41581$Fv.16352@lakeread01> from
jerrygarciuh contained the following:
> $ary = array('a','b','c','d');
> foreach ($ary as $a) {
> echo key($ary) . ',';
> }
$ary = array('a','b','c','d');
foreach ($ary as $key=>$a) {
echo $key . ',';
}
//Should output 0,1,2,3,
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Navigation:
[Reply to this message]
|