Shorthand (ternary expression) If Statement in PHP

 

function greater_than() {

return ($x > $y) ? true : false;

}

Categorized in: