On Thu, 2004-08-26 at 09:25, fongming wrote:
> for($i=0;$i<count($mails);$i++)
> {
> [EMAIL PROTECTED]($mbox,$mails[$x-1]);
> echo $subject=$h->subject;  
> echo $sender=$h->from[0]; 
> echo "<BR>";
> }


Calling count() every time the for loop iterates is inefficient.

$count = count($mails);
for($i=0; $i<$count; $i++){

}


-- 
Greg Donald

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to