this code:
print array() == NULL ? "True" : "False";
print " (" . (array() == NULL) . ")\n";
$arr = array();
print array() == $arr ? "True" : "False";
print " (" . (array() == $arr) . ")\n";
print count(array()) . "\n";
print count(NULL) . "\n";
will output (on php4 and php5):
True (1)
True (1)
0
0
so to decide wether i have NULL or an empty array i will also have to use gettype(). this seems some kind of weird for me, although if is this is a bug, somebody should have noticed it before.
alex