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