PHP 7.2.7 Released


(PECL sphinx >= 0.1.0)

SphinxClient::escapeStringEscape special characters


public string SphinxClient::escapeString ( string $string )

Escapes characters that are treated as special operators by the query language parser.

Elenco dei parametri


String to escape.

Valori restituiti

Returns escaped string.

add a note add a note

User Contributed Notes 1 note

xxxbunker dot com
8 years ago
according to

this function doesn't really do what one would expect (mysql_real_escape_string style) and is more meant to escape individual keywords...

my experience it works better to manually escape reserved characters, for example:

='make big $ online';

To Top