<?php
$a = 0;
$b = 'x';
var_dump(FALSE == $a);
var_dump($a == $b);
var_dump($b == TRUE);
?>
This results in bool(true)
bool(true)
bool(true) <?php
$a = 0;
$b = 'x';
var_dump(FALSE == $a);
var_dump($a == $b);
var_dump($b == TRUE);
?>
This results in bool(true)
bool(true)
bool(true)http://stackoverflow.com/questions/359494/does-it-matter-whi...
Modern CFML running on Railo is an awesome environment to work in: PHP-like hackability, a very consistent language spec, native JVM performance, first-class java library integration, and it's a 100% pure open source software stack.
Whereas PHP has a much slower runtime, a horrific language spec, and nothing similar to the benefit of running on a common runtime like the JVM.
In Perl, $a == $b would be true -- just like in PHP. However, in Perl, you use string comparison ($a eq $b) when you want to compare strings. PHP doesn't seem to have string comparison outside of ==.
Though I suppose you could use === but it's still crazy.