11-14-2007, 02:09 PM
|
#3 (permalink)
|
|
The Contributor
Join Date: Nov 2007
Posts: 32
Thanks: 5
|
Nice tip you got there,
This line :
PHP Code:
for($iIndex = 1; $iIndex < func_num_args(); $iIndex++)
Is not that good because on every loop it calls the "func_num_args" function, So you may replace it with :
PHP Code:
for($iIndex = 1, $num_args = func_num_args(); $iIndex < $num_args; $iIndex++) ...
or :
PHP Code:
$num_args = func_num_args(); for($iIndex = 1; $iIndex < $num_args; $iIndex++) ...
|
|
|