afan@xxxxxxxx wrote:
I have a code foreach($results as $key => $value) { echo $key.': '. $value .'<br>'; } But, $value could be zero too. How to skip printing on screen when $vlaue == 0?
foreach($results as $key => $value) { if ($value == 0) continue; echo $key.': '. $value .'<br>'; } -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php