ternary operator in php if else if code example Example: php ternary operator (Condition) ? (Statement1) : (Statement2);