NYCPHP Meetup

[nycphp-talk] Need help understanding NULL

Michael Southwell michael.southwell at nyphp.com
Sat Aug 29 21:56:00 EDT 2009


Kristina D. H. Anderson wrote:
> You're right that in PHP most of the comparison operators won't treat 
> an empty string and NULL pulled out of a database as the same.  I'm 
> thinking back on a long history of using many languages and have to say 
> that without sitting down and testing it out, I couldn't offhand make a 
> list of what the behavior would be with, say, = vs == vs the new === in 
> PHP5.

Precisely this issue is discussed in the PHundamental article 
http://www.nyphp.org/phundamentals/variableevaluation.php (which picks 
up a contemporaneous thread ;-).


-- 
=================
Michael Southwell
Vice President, Education
NYPHP TRAINING:  http://nyphp.com/Training/Indepth



More information about the talk mailing list