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 |