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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
HalfPastJohn
Forum Newbie
Posts: 1
Joined: Mon Jun 04, 2012 9:50 pm

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

Post by HalfPastJohn »

i'm a noob :oops:
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

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

Post 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.
Post Reply