Example #1
0
 public function money_check($str)
 {
     // First check if decimal
     if (parent::decimal($str)) {
         return TRUE;
     } else {
         if (parent::integer($str)) {
             return TRUE;
         } else {
             $this->form_validation->set_message('money_check', 'Value must be in integer or decimal form.');
             return FALSE;
         }
     }
 }