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.
You could store it in a variable.
or you could print it straight to the users browsers
So what happens here is if $num is greater than 0 print More than 0 else print Less than 0.
I hope you've found this quick tip helpful and use it throughout future projects.
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.