PHP: Is_numeric returns false on 0 [closed]
var_dump(is_int("0"));
Will pass false because you are passing it the zero as a string literal. You could try passing the same thing as a variable which has gone through (I believe) parseInt("");
Though my php may be a little off, having been Javascripting nonstop the last week or two.