Page 1 of 1

What does `var_dump(1 === true)` output?

Posted: Mon Jun 04, 2012 9:52 pm
by HalfPastJohn
i'm a noob :oops:

Re: What does `var_dump(1 === true)` output?

Posted: Mon Jun 04, 2012 11:13 pm
by requinix
It's simple enough that you should be able to figure it out youself. What is ===? What happens if you use it on 1 and true? What would var_dump() show for that?

At the very least you can execute the code. I mean really.