You’re probably already familiar with PHP’s if statement. It’s very similar to its counterparts in many other programming languages and represents one of the most fundamental concepts in programming. The if statement is easy to understand and easy to master.

Visit link:
PHPMaster: Using the Ternary Operator

Amanda Steigerwalt is a twenty-something software engineer living in Mountain View, CA. Her passion for web development began at a young age and so far has served her well in life. When she's not at work coding, she can often be found at home coding her own personal projects. Amanda also enjoys motorcycles, circus arts, and exploring Mountain View. One day she really, really hopes to get a puppy.

Free Guide:

How to Choose the Right Charting Library for Your Application

How do you make sure that the charting library you choose has everything you need? Sign up to receive this detailed guide from FusionCharts, which explores all the factors you need to consider before making the decision.

No Reader comments

Learn JavaScript for free!
Free course: Introduction to JavaScript

Yours when you take up a free 14-day SitePoint Premium trial.