Why do the following lines of code return 5 in PHP 5.3?
$ReturnValue = "2" + "3";
echo $ReturnValue;
$ReturnValue = "2 v" + "3";
echo $ReturnValue;
Shouldn’t it return an error? I thought strings couldn’t be added until they were cast as integers? Anyone care to explain why it’s working fine?