PHP One Line IF Statement Comments (6)
by Wez Pyke - August 27, 2008 in PHP,Text Tutorials

I'm sure if you've been programming for a few years that you've come across when you need to check if something equals something than do something else a few times.

Well the best way to do this is like so.

Say for example we have a variable called $num and the value of it is 5.
(more...)