You are here: Re: arrays... and long-term-novice « PHP Programming Language « IT news, forums, messages
Re: arrays... and long-term-novice

Posted by Geoff Berrow on 10/26/05 11:44

Message-ID: <1h51a61.12doesj150477aN%hidden@mail.zz> from Ja NE
contained the following:

>
>I don't know... how would "script knew" when to break?

Seems to work fine.

$array=array(101=>"25",102=>"35",103=>"30");

arsort($array);

foreach ($array as $key=>$value){

//do some processing
print"<p>Key is:$key Value is: $value</p>";
break;

}

print "All done";

--
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]


Удаленная работа для программистов  •  Как заработать на 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

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