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

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -