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