MySpaza - How To



PHP Function to check if variable is an Integer
PHP integer check function

Added: 2008-05-19 19:49:13

This is a function that will return true if the Variable presented to it is an integer.

function isInteger($n) {

if (preg_match("/[^0-^9]+/",$n) > 0) { return false; } return true;

}




Add a comment to this post
Email confirmation is required for each post

Name:
Email:
Comment:
 

Comments from other users:




Copyright MySpaza.Co.Uk - 2008