Login
Remember
Register
Ask a Question
How is the ternary conditional operator used in PHP?
+1
vote
asked
Jun 23, 2019
in
PHP
by
SakshiSharma
How is the ternary conditional operator used in PHP?
#php
#php-php
#php-server-monitor-script
#php-support
#mysql-php
#php-programmer
#php-development
#php-language
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 23, 2019
by
anonymous
It is composed of three expressions: a condition, and two operands describing what instruction should be performed when the specified condition is true or false as follows:
Expression_1?Expression_2 : Expression_3;
...