adspace


Described ternary conditional operator in PHP?

Answer Posted / Satpal Singh Rawat

The ternary conditional operator is a shorthand if-else statement in PHP. It consists of three operands separated by question marks (?) and colons (:). The syntax is as follows: `condition ? expression_if_true : expression_if_false`.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what is the current version of wordpress?

242


How much is the wordpress business plan?

211


Tell me how do I redirect users back to my blog's main page after they login?

253