Search

Ternary if PHP


Description
Ternary if


$var = 5;
$greater_than_two = ($var > 2 ? true : false); //true
SEE ALSO