sphinx\Connection escapeMatchValue()

escapeMatchValue() public method

Escapes all special characters from 'MATCH' statement argument.

Make sure you are using this method whenever composing 'MATCH' search statement. Note: this method does not perform quoting, you should place the result in the quotes an perform additional escaping for it manually, the best way to do it is using PDO parameter.

public string escapeMatchValue ( $str )
$str string

String to be escaped.

return string

The properly escaped string.

doc_Yii
2016-10-30 17:11:54
Comments
Leave a Comment

Please login to continue.