[solved] "" and NULL

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
User avatar
dallasx
Forum Contributor
Posts: 106
Joined: Thu Oct 20, 2005 4:55 pm
Location: California

[solved] "" and NULL

Post by dallasx »

When comparing two variables, is "" the same as NULL?
Last edited by dallasx on Thu Nov 10, 2005 3:25 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

that depends on what you are using to do the comparison.. ;)

isempty() would be yes
== would be yes
=== would be no
Post Reply