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 -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -