Re: skip a row in foreach loop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



but there is a tons of code lines inside the loop and was thingking is there any part in foreach function that can do that? something like:
foraech($results as $key => $value, skip(empty($value)))
{
   //
}

'continue' is your friend.

http://us3.php.net/manual/en/control-structures.continue.php

thnx,
Chris

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux