> >    $a = null;
> >    $b = ($a == 42);
> >    print defined($b)? "defined" : "not defined";
> 
> >would print "not defined", maybe?

defined() is the wrong operator to be using there. Rather,

     $a = null;
     $b = ($a == 42);
     print is_null($b)? "is null" : "is not null";

In general, what would these result to:

        defined(null)

        is_null(undef)

-- 
John Porter

Reply via email to