public function rule_false($a)
    {
        // Changes PHP false to 0
        $a = strtolower($a);

        $vals = array('false', 'f', 0, 'no', 'n');

        if (!in_array($a, $vals)) {
            return $this->fail('Must be false');
        }
    }
public function rule_false($a)
    {
        // Changes PHP false to 0
        $a = strtolower($a);

        $vals = array('false', 'f', 0, 'no', 'n');

        if (!in_array($a, $vals)) {
            return $this->fail('Must be false');
        }
    }
public function rule_false ( $ a ) { // Changes PHP false to 0 $ a = strtolower ( $ a ) ; $ vals = array ( 'false' , 'f' , 0 , 'no' , 'n' ) ; if ( ! in_array ( $ a , $ vals ) ) { return $ this -> fail ( 'Must be false' ) ; } }
Validate for false|f|0|no|n.

Normalizes to lower case

Useful for 'if' rules
Validate for false|f|0|no|n .