ad parent paramter to pis
This commit is contained in:
@@ -54,6 +54,18 @@ class StringManager {
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method if the string is in integor
|
||||
* @param string $value
|
||||
* @return boolean
|
||||
*/
|
||||
public static function validInt($value) {
|
||||
if (!ctype_digit($value) || PHP_INT_MAX < $value) {
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user