php.js icon indicating copy to clipboard operation
php.js copied to clipboard

Ternary operation

Open tjconcept opened this issue 12 years ago • 1 comments

Try:

echo 1?: 2;

Expected output: 1 Outputs: undefined

tjconcept avatar Jul 26 '12 19:07 tjconcept

Interesting, I'll have a closer look at this later on and how it treats other undefined ternary operations. Another wonderful difference between JS and PHP :P

niklasvh avatar Jul 27 '12 06:07 niklasvh