I see a lot of people using a variety of different methods to check whether of a variable is empty, there really seems to be no consensus. I've heard that if($foo) is exactly the same as if(!empty($foo)) or if($foo != ""). Is this true?

I realize it's a really simple question, but I'd really like to know. Are there any differences? Which method should I use?

Edit
Report