ternary operator for 3 conditions in php code example Example: php ternary operator (Condition) ? (Statement1) : (Statement2);