Operators

Ternary Conditional Statement
<?php
$a = 10;
$b = 20;
/* If condition is true then assign a to result otheriwse b */
$result = ($a > $b ) ? $a :$b;
/* If condition is true then assign a to result otheriwse b */
$result = ($a < $b ) ? $a :$b;
?>

results matching ""

    No results matching ""