I have an If statement that i want to use to determine whether the variableis a integer or not.

The example below does not work but illustrates what i would like to be able to do:

If($x/4==interger) {echo ("this is a integer");} else {echo ("This is not a integer");}

I would appreciate the help;