eval.in

Paste #111361

PHP — PHP 5.4.6, pasted 1 year ago

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
<?php

// "NULL" should really be added to the comparison tables: http://us3.php.net/manual/en/types.comparisons.php

echo("is_null('NULL') => ");
var_dump(is_null('NULL'));

echo("'NULL' == NULL => ");
var_dump('NULL' == NULL);

echo("'NULL' == 0 => ");
var_dump('NULL' == 0);

Program Output

is_null('NULL') => bool(false)
'NULL' == NULL => bool(false)
'NULL' == 0 => bool(true)

OK (0.008 sec real, 0.006 sec wall, 13 MB, 47 syscalls)

Fork