I just want to know the method to check a PHP variable for any non-numbers and if it also detects spaces between characters? Need to make sure nothing weird gets put into my for
Cast and compare:
function string_contain_number($val) { return ($val + 0 == $val) ? true : false; }