For example, say:
How do I check if variable
You can use is_numeric to check if a var is a number. You also have is_int. To test if it's positive juste do something like if (var > 0).