You appear to be a bot. Output may be restricted
Description
Validates whether the passed variable is an integer.
Usage
$bool = WPSEO_Validator::is_integer( $variable );
Parameters
- $variable
- ( mixed ) required – The variable to validate.
Returns
bool Whether or not the passed variable is an integer.
Source
File name: wordpress-seo/inc/class-wpseo-validator.php
Lines:
1 to 4 of 4
public static function is_integer( $variable ) { return filter_var( $variable, FILTER_VALIDATE_INT ) || filter_var( $variable, FILTER_VALIDATE_INT ) === 0; }