Optimize your PHP Code – Tips, Tricks and Techniques
October 24th, 2008
-
[googmonify]2908853635:center:468:60[/googmonify]
- If a method can be static, declare it static. Speed improvement is by a factor of 4
- echo is better than print
[sourcecode language='php']
echo( ‘CHECKMATE: PLAY with PROBLEMS’ );
// is better than
print( ‘CHECKMATE: PLAY with PROBLEMS’ );
[/sourcecode] - Use echo’s multiple parameters instead of string concatenation
[sourcecode language='php']

I am A.N.M. Saiful Islam. Open Source Contributor, Professional Web Application Developer and currently working with SYSBD Limited as Project Manager
Recent Comments
[August 6, 2011]
[August 5, 2011]
[August 5, 2011]
Useful Blogs
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.