[ create a new paste ] login | about

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

PHP, pasted on Mar 19:
1
2
3
4
5
6
7
8
9
<?php
$f = '0';
$t = '1';

// double negation
var_dump(!!$f,!!$t);

// string compare
var_dump($f=='1',$t=='1');


Output:
1
2
3
4
bool(false)
bool(true)
bool(false)
bool(true)


Create a new paste based on this one


Comments: