Tribe__Validator__Base::is_positive_int( mixed $value )
Whether the value is a positive integer or not.
Contents
Parameters
- $value
-
(mixed) (Required)
Return
(bool)
Source
File: src/Tribe/Validator/Base.php
public function is_positive_int( $value ) {
return is_numeric( $value ) && (int) $value == $value && (int) $value > 0;
}