Archive for October, 2007
40 Tips for optimizing your php Code
Original Content Source:
http://reinholdweber.com/?p=3
If a method can be static, declare it static. Speed improvement is by a factor of 4.
echo is faster than print.
Use echo’s multiple parameters instead of string concatenation.
Set the maxvalue for your for-loops before and not in the loop.
Unset your variables to free memory, especially large arrays.
Avoid magic like __get, __set, __autoload
require_once() is [...]
