I'm looking for PHP Optimization tips. Coding practices and other methodologies which will make my PHP execute faster.
One tip per answer, please, and include why it makes the code faster!
The best results for optimising your application are usually seen with well written code; so refactoring your PHP is a good place to start. A more generalised method would be to cache the opcode with the likes of APC (a PECL extension).
Bookmarks