Thursday, April 18, 2013

10 Advanced Tips To Improve Your PHP Programming


10 Advanced PHP Tips To Improve Your PHP Programming

I was doing some reading on advanced PHP topics, you know, things to help me become a better PHP programmer,many programmer sometimes for using brackets when i do not need to write brackets. I must say it has some very valid and interesting points (For those who do not feel like reading here are the 10 tips)

1-Use a SQL Injection cheatsheet (they link to this one)
2-Know the Difference Between Comparison Operators
3-Shortcut the else (less use of else)
4-Drop those Brackets
5-Favor str_replace() over ereg_replace() and preg_replace()
6-Use Ternary Operators
7-Mem cached
8-Use a Framework
9-Use the Suppression Operator Correctly
10-Use isset instead of strlen

For more freelance projects and jobs visit www.vkender.com 
more than 150000  php projects and 5000 php freelancer available here