Colleagues, I use the code below and it returns TRUE (!!!). How is that?
<?php
$var = 'A string';
$varCasted = (int)$var;
var_export($varCasted == $var, 0);
Could you reproduce the same and explain me if you see the same? JFYI: it works if only I do:
var_export((string) $varCasted == (string) $var, 0);