Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

codeigniter validate integer in php

 function integer_validate($value) {
     if(is_numeric($value) || is_float($value)) {
       return true;
     }else{
       return false;
       error(get_phrase('only_integer_and_float_values_allowed'), $_SERVER['HTTP_REFERER']);
     }
}
 
PREVIOUS NEXT
Tagged: #codeigniter #validate #integer #php
ADD COMMENT
Topic
Name
4+9 =