Why does this always return true:
true
$s = \'334rr\'; $i = (int)$s; if ($i == $s) { echo true; } else { echo false; }
If I ec
Try this
$s = '334rr'; $i = intval($s); if ($i == $s) { echo true; } else { echo false; }