src/Verify.php
public function is($value, $rules)
    {
        $valTO = $this->apply($value, $rules);
        if ($valTO->fails()) {
            return false;
        }

        return $valTO->getValue();
    }
public function is($value, $rules)
    {
        $valTO = $this->apply($value, $rules);
        if ($valTO->fails()) {
            return false;
        }

        return $valTO->getValue();
    }
public function is ( $ value , $ rules ) { $ valTO = $ this -> apply ( $ value , $ rules ) ; if ( $ valTO -> fails ( ) ) { return false ; } return $ valTO -> getValue ( ) ; }
validates a text value, or an array of text values.
returns the filtered value, or false if validation fails.

@param string|array $value
@param array|Rules $rules
@return bool|string
validates a text value or an array of text values . returns the filtered value or false if validation fails .