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
If you mean that you only want a value to contain digits then you can use ctype_digit().