public function toArray($tokenList) {
        $expr = array();
        foreach ($tokenList as $token) {
            if ($token instanceof \PHPSQLParser\utils\ExpressionToken) {
                $expr[] = $token->toArray();
            } else {
                $expr[] = $token;
            }
        }
        return $expr;
    }
public function toArray($tokenList) {
        $expr = array();
        foreach ($tokenList as $token) {
            if ($token instanceof \PHPSQLParser\utils\ExpressionToken) {
                $expr[] = $token->toArray();
            } else {
                $expr[] = $token;
            }
        }
        return $expr;
    }
public function toArray ( $ tokenList ) { $ expr = array ( ) ; foreach ( $ tokenList as $ token ) { if ( $ token instanceof \ PHPSQLParser \ utils \ ExpressionToken ) { $ expr [ ] = $ token -> toArray ( ) ; } else { $ expr [ ] = $ token ; } } return $ expr ; }
translates an array of objects into an associative array
translates an array of objects into an associative array