return true? \'a\' : false ? \'b\' : \'c\'; This should return \'a\', but it doesn\'t. It returns \'b\' instead. Is there a bug in PHP\'s order of handling the different parts of the conditional ope
Hi i was recently looking over a shopping cart paginator class, trying to understand their code so i could build my own paginator when i came across the following line of code. It resembles a ternary
(I don\'t have a seriou开发者_开发百科s need for this answer, I am just inquisitive.) Can every if-else construct be replaced by an equivalent conditional expression using the conditional operator ?:
This question already exists: Closed 13 years ago. Possible Duplicate: php ==开发者_运维问答 vs === operator
Cons开发者_运维问答idering the evaluation time, are following two equivalent? if(condition1) { //code1
Does anybody know if there is a shortcut for the following statement in PHP? $output = isset($some_value) ? $some_value : \"Some Value Not Set\";