Skip to content

Ternary operation #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tjconcept opened this issue Jul 26, 2012 · 1 comment
Open

Ternary operation #10

tjconcept opened this issue Jul 26, 2012 · 1 comment

Comments

@tjconcept
Copy link

Try:

echo 1?: 2;

Expected output: 1
Outputs: undefined

@niklasvh
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants