2
We know there is a way to make an if Else using conditional operator, but would you like to know if there is a way to make an IF ELSE IF in PHP using conditional operator? if yes how? could send me an example?
2
We know there is a way to make an if Else using conditional operator, but would you like to know if there is a way to make an IF ELSE IF in PHP using conditional operator? if yes how? could send me an example?
Browser other questions tagged php
You are not signed in. Login or sign up in order to post.
a()? b()? C: D : E
; where it is obtainedC
sssa() &&b()
,D
sssa() && !b()
andE
sss!a()
– Jefferson Quesado
@Jeffersonquesado did not understand
– Rui
@Rui , finished now, had pressed send before time unintentionally
– Jefferson Quesado
@Jeffersonquesado what would be sss ?
– Rui
"If and only if"
– Jefferson Quesado
$a ? $b : ( $c ? $d : ( $e ? $f : $g ) ) Just a warning, nested ternary instructions are hard to read.
– user60252