Mega Code Archive

 
Categories / Php / Operator
 

The trinary operator

<? $first_num =2; $second_num = 1; $max_num = $first_num > $second_num ? $first_num : $second_num; echo($max_num); ?>