ternary operator example php Example: php ternary operator (Condition) ? (Statement1) : (Statement2);