Speeding up program

From: Date: Tue, 18 Sep 2001 11:26:23 +0000
Subject: Speeding up program
Groups: php.general 
Request: Send a blank email to php-general+get-67693@lists.php.net to get a copy of this message
How big difference does it make in speed in these: <? for ($i = 0; $i < mysql_num_rows($Results); $i++) { blah }; ?> or <? $n = mysql_num_rows($Results); for ($i = 0; $i < $n; $i++) { blah }; ?> So actually I'm asking how much more/less it takes time to do the comparing against mysql_num_rows() insted of comparing against a variable. Niklas

« previous php.general (#67693) next »