Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ExamplesSolrUtils::digestXmlResponse>
^SolrLast updated: Mon, 26 Oct 2026

The SolrUtils class

(PECL solr >= 0.9.2)

Introduction

Contains utility methods for retrieving the current extension version and preparing query phrases.

Also contains method for escaping query strings and parsing XML responses.

Class synopsis

abstract class SolrUtils {
/* Methods */
public static function digestXmlResponse(string $xmlresponse, int $parse_mode = 0): SolrObject
public static function escapeQueryChars(string $str): string|false
public static function getSolrVersion(): string
public static function queryPhrase(string $str): string
}

Table of Contents


<ExamplesSolrUtils::digestXmlResponse>
^SolrLast updated: Mon, 26 Oct 2026