php - FILTER_VALIDATE_INT unexpected result -
i'm using following code:
if(!filter_var($postings['remainingtokens'], filter_validate_int, array('min-range' => 1))){ $this->redirect(array('upgrade', 'id'=>$id)); } when have $postings['remaingtokens'] equal 1 or higher works fine , doesn't execute within if statement. if have negative value though still doesn't execute redirect(). why case? apologies if simple?
jonny
it spelled min_range not min-range.
Comments
Post a Comment