5 years ago in PHP Operators

How to Use Ternary Operator in PHP

[A] if(2 == 1) ? “yes” : “no”;
[B] a+=b
[C] a+b
[D] None of the above
Loading...
Next Question

Overall Stats

Attempted 71
Correct 29
Incorrect 16
Viewed 26

Answers

Guest
Guest
Dhanashri Bhuyar
Dhanashri Bhuyar - 1 month ago

Dhanashri Bhuyar from Mumbai, India is saying if(2 == 1) ? “yes” : “no”; is correct answer

ayoub benigmim
ayoub benigmim - 1 month ago

ayoub benigmim from Casablanca, Morocco is saying if(2 == 1) ? “yes” : “no”; is correct answer

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

AHMED SOULIMANI from Casablanca, Morocco is saying if(2 == 1) ? “yes” : “no”; is correct answer

Ramesh L
Ramesh L - 3 months ago

Ramesh L from Chennai, India is saying if(2 == 1) ? “yes” : “no”; is correct answer

Samir Pawar
Samir Pawar - 7 months ago

Samir Pawar from Pune, India is saying if(2 == 1) ? “yes” : “no”; is correct answer

Related Questions

Which is the string operator in php

  • [A] .
  • [B] .=
  • [C] ==
  • [D] (i) and (ii)

How we can do Pre-Increment of a Variable?

  • [A] $a++
  • [B] $a+$a
  • [C] ++$a
  • [D] None of above

Which operator is used for class instance php

  • [A] Logical Operator
  • [B] Array Operator
  • [C] Type Operator
  • [D] None of the above