private function skipUntilSearchedToken($searchFor)
    {
        while ($this->token) {
            if ((is_string($searchFor) && ($searchFor == $this->token))
                || (is_int($searchFor) && is_array($this->token) && ($searchFor == $this->token[0]))
            ) {
                break;
            }
            $this->advanceToken();
        }
    }
private function skipUntilSearchedToken($searchFor)
    {
        while ($this->token) {
            if ((is_string($searchFor) && ($searchFor == $this->token))
                || (is_int($searchFor) && is_array($this->token) && ($searchFor == $this->token[0]))
            ) {
                break;
            }
            $this->advanceToken();
        }
    }
private function skipUntilSearchedToken ( $ searchFor ) { while ( $ this -> token ) { if ( ( is_string ( $ searchFor ) && ( $ searchFor == $ this -> token ) ) || ( is_int ( $ searchFor ) && is_array ( $ this -> token ) && ( $ searchFor == $ this -> token [ 0 ] ) ) ) { break ; } $ this -> advanceToken ( ) ; } }
Skip all tokens until the matched token has been encountered or no more tokens are available.

@param mixed $searchFor The token to search for.

@return void
Skip all tokens until the matched token has been encountered or no more tokens are available .