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. |
Please login to continue.