This is driving me nuts. Two integers should be equal.
<?php
function getPort() {
return 443;
}
$port = getPort();
var_dump(433, $port, $port == 433, 443 == $port, 433 == 433);
?>
Result in both PHP 5.2 and 5.4:
int(433)
int(443)
bool(false)
bool(true)
bool(true)
In the previous code why does $port not equal 443 but 443 does equals $port? I must be doing something stupid surely?