or operator in ternary operator code example
Example 1: ternary operator
(condition) ? (if true, do this) : (otherwise, do this)
Example 2: How many operands does a ternary operator have?
<?php
$i = 0;
while ((--$i > ++$i) - 1)
{
print $i;
}
?><?php
$i = 2;
while (++$i)
{
while ($i-- > 0)
print $i;
}
?>