Try following example to understand the conditional operator.
$a = 10; $b = 20; /* If condition is true then assign a to result otheriwse b */ $result = ($a > $b ) ? $a :$b; echo $result;
Here $a is if condition and $b is in else condition.
You might also like:
|insert sql bulk database|
|request module node js|
|mm-dd-yyyy HH:MM date formats angular js|
|email validation regex|