condition operator php code example
Example 1: php ternary operator
(Condition) ? (Statement1) : (Statement2);
Example 2: operators in php
if (condition)
code to be executed if condition is true;
else
code to be executed if condition is false;