The ternary operator syntax is: condition ? value_if_true : value_if_false.
Step 2: Check each option
$result = ($num > 0) ? 'Positive' : 'Non-positive'; correctly uses the syntax with parentheses and colon separating true and false values. Options B, C, and D have syntax errors or misuse operators.