[ create a new paste ] login | about

Link: http://codepad.org/yn2pW5yW    [ raw code | output | fork ]

PHP, pasted on Aug 10:
1
2
3
4
5
6
7
8
9
<?php
$a = (int) 0;
$b = 'NOW';

if ($a == $b) print "a == b\n";
if ($a) print "a is TRUE\n"; else print "a is FALSE\n";
if ($b) print "b is TRUE\n"; else print "b is FALSE\n";

var_export(FALSE == TRUE);


Output:
1
2
3
4
a == b
a is FALSE
b is TRUE
false


Create a new paste based on this one


Comments: