Re: Re: [PEPr] +1 for PHP::PHP_Compat

From: Date: Tue, 11 May 2004 21:24:41 +0000
Subject: Re: Re: [PEPr] +1 for PHP::PHP_Compat
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-29123@lists.php.net to get a copy of this message
Hello, I found this in your source code (array_combine): for ($i = 0; $i < count($values); $i++) { $rv[$keys[$i]] = $values[$i]; } I would suggest a temporary variable for the array size for a speed improvement, because you needn't to retrieve the size in every step. for ($i = 0, $cnt = count($values); $i < $cnt; $i++) { $rv[$keys[$i]] = $values[$i]; } greetings Stefan

« previous php.pear.dev (#29123) next »