php.js
php.js copied to clipboard
Ternary operation
Try:
echo 1?: 2;
Expected output: 1 Outputs: undefined
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