PHP Shorthand If/Else Statements

Using PHP shorthand IF/Else statements are a great time saver and help make your code look neater.  Here is a collection of examples I often use.

 

Author: Richard Soares

I’m a freelance software developer with more than 20 years’ professional experience in web development. I specialise in creating tailor-made, web-based systems that can help your business run like clockwork.