Answers for "php check if input is a positive integer"

PHP
0

php check if input is a positive integer

$filter_options = array( 
    'options' => array( 'min_range' => 0) 
);


if( filter_var( $i, FILTER_VALIDATE_INT, $filter_options ) !== FALSE) {
   ...
}
Posted by: Guest on June-05-2021

Code answers related to "php check if input is a positive integer"

Browse Popular Code Answers by Language