UK[kwəʊt] US[kwoʊt]
vt.& vi. Quote, quote
vt. Quotation; quote
vi. Quote
n. Quotation; quotation; quotation mark
Third person singular: quotes Plural: quotes Present participle: quoting Past tense: quoted Past participle: quoted
php quotemeta() function syntax
Function:Add backslash before predefined characters
Syntax:quotemeta(string)
Parameters:
Parameter | Description |
string | Must, required Processed string |
Description:This function can be used to escape characters with special meanings, such as ( ), [ ] and * in SQL . This function is binary safe.
php quotemeta() function example
"; echo quotemeta($str2)."
"; echo quotemeta($str3)."
"; echo quotemeta($str4)."
"; ?>
Run instance»
Click the "Run instance" button to view the online instance
Output:
1 \+ 1 = 2 1 \* 1 = 1 Welcome to php\.cn! Are you ok\?