public function peekChars($chars)
    {
        return in_array($this->peek(), is_array($chars) ? $chars : str_split($chars), true);
    }
public function peekChars($chars)
    {
        return in_array($this->peek(), is_array($chars) ? $chars : str_split($chars), true);
    }
public function peekChars ( $ chars ) { return in_array ( $ this -> peek ( ) , is_array ( $ chars ) ? $ chars : str_split ( $ chars ) , true ) ; }
Peeks one byte and checks if it equals the given characters.

You can pass the characters as a string containing them all or as an array.

@param string|array $chars the characters to check against.

@return bool whether one of them match or not.
Peeks one byte and checks if it equals the given characters .