[ create a new paste ] login | about

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

PHP, pasted on Nov 5:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

$var1 = 172.22;
$var2 = "172.22";

$var1 = (float)$var1;
$var2 = (float)$var2;

var_dump($var1);
var_dump($var2);

if ($var1 < $var2) {
    echo "hello";
}

?>


Output:
1
2
float(172.22)
float(172.22)


Create a new paste based on this one


Comments: