Reply to Re: function that returns current numeric index?

Your name:

Reply:


Posted by Geoff Berrow on 10/11/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/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация