I've recently programmed a lot in javascript and I was trying to use some shorthands in PHP.
Consider this statement:
$value = 1;
return $value == 1 ?
'a' : $value == 2 ? 'b' : 'c';
Could anyone explain me why this returns 'a' in jQuery and 'b' in php?