RSS Feed

Mar 9

40 Tips for optimizing your php code

Posted on Monday, March 9, 2009 in Programming

Great article I found on http://reinholdweber.com/ about optimizing your php code.

  1. If a method can be static, declare it static. Speed improvement is by a factor of 4.
  2. echo is faster than print.
  3. Use echo’s multiple parameters instead of string concatenation.
Better Tag Cloud