Archive

Posts Tagged ‘efficient’

Optimize your PHP Code – Tips, Tricks and Techniques

October 24th, 2008 15 comments
    [googmonify]2908853635:center:468:60[/googmonify]

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