escape_like_str($str)
Parameters: |
|
---|---|
Returns: |
The escaped string(s) |
Return type: |
mixed |
Escape LIKE strings.
Similar to escape_str()
, but will also escape the %
and _
wildcard characters, so that they don’t cause false-positives in LIKE conditions.
Important
The escape_like_str()
method uses ‘!’ (exclamation mark) to escape special characters for LIKE conditions. Because this method escapes partial strings that you would wrap in quotes yourself, it cannot automatically add the ESCAPE '!'
condition for you, and so you’ll have to manually do that.
Please login to continue.