Explain the ternary conditional operator in php language?
Answer Posted / Sandeep Chaudhary
The Ternary Conditional Operator in PHP is a shorthand way to write an if-else statement. It has the syntax: `expression (?) : expression (;)`. If the condition is true, it executes the first expression; otherwise, it executes the second.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers