How to validate value is Interger in Php?
This function checks whether a variable is of type integer or not.
1. Code:
";
var_dump(checkValueIsInterger('a'));
?>
2. Example:
Input:
input: 1 input: 1.2
Output:
output: true output: false
This function checks whether a variable is of type integer or not.
";
var_dump(checkValueIsInterger('a'));
?>
input: 1 input: 1.2
output: true output: false