| 
 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/
 
[Back to original message] 
 |