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

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

javascript - CasperJS/PhantomJS failing SSL handshakes on some sites even with --ssl-protocol=any -

python - Received unregistered task using Celery with Django -