Mega Code Archive
Categories
/
Php
/
Operator
The Ternary Operator
$age = 18; $agestr = ($age < 16) ? 'child' : 'adult'; ?>