1) security comes before performance in all aspects of programming, php or not
2) learn to love () ? : (ternary operator)
3) use "and" and "or" instead of && and ||, much easier to read and understand, does exactly the same thing
4) never use $_REQUEST, very easy to forge things
5) "" and '' perform the same, stop being eejits and saying one performs faster than the other, they don't any more, use either
6) use , instead of . in echo, it's faster
7) use echo instead of print unless you want to hang on to the variable, it's faster
8) use cookies instead of sessions unless you specifically need sessions
9) use strstr instead of foreach / for loop for replacing things
that is all you can go now








Because the only things I know are stripslashes and mysql_real_escape_string, md5 and sha1 :L:L









