View Single Post
  #52 (permalink)  
Old 11-09-2007, 10:40 PM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: PHP Optimization Tips

Some more useful tips
* printf is much more slower than echo or print, it must handle additional parameters. But echo is faster than print, despite of that both are constructors, print is returning boolean result, echo returns nothing.
* when searching string in another string strstr() is faster than preg functions, however if you want to know if that string exists use strpos().
__________________
With,
J. Jeyaseelan

Everything Possible
Reply With Quote