PHP Notes
Thursday, October 5, 2006 6:11:14 PM
General PHP Speed notes:
Function calls - using pointers instead of direct variable copies. Speeds up Function usage.
EG:
function foo ($arg){
echo $arg;
}
$word = "sheep";
foo (&$word);
Also effecting speed is use of single vs double quotes. Stay away from printf() and <<END text here END; Use single quote - twice as fast print and echo with double quotes.
Function calls - using pointers instead of direct variable copies. Speeds up Function usage.
EG:
function foo ($arg){
echo $arg;
}
$word = "sheep";
foo (&$word);
Also effecting speed is use of single vs double quotes. Stay away from printf() and <<END text here END; Use single quote - twice as fast print and echo with double quotes.




