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

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

tags - Jquery Mixitup plugin help prevent handlers being destroyed -

python - Received unregistered task using Celery with Django -