D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
everqlsh
/
www
/
wp-content
/
plugins
/
wordfence
/
modules
/
login-security
/
classes
/
utility
/
Filename :
number.php
back
Copy
<?php namespace WordfenceLS; class Utility_Number { public static function isInteger($value, $min = null, $max = null) { $options = array(); if ($min !== null) $options['min_range'] = $min; if ($max !== null) $options['max_range'] = $max; return filter_var($value, FILTER_VALIDATE_INT, array('options' => $options)) !== false; } public static function isUnixTimestamp($value) { return self::isInteger($value, 0); } }