The Ternary Operator on January 28, 2016 Get link Facebook X Pinterest Email Other Apps The Ternary Operator It is called the ternary operator because it takes three operands a condition a result for true and a result for false. <?php $agestr = ($age < 16) ? 'child' : 'adult'; ?> Comments
Comments
Post a Comment