Name
quotemeta
Synopsis
string quotemeta(string string
)
Escapes instances of certain characters in
string
by appending a backslash
(\
) to them and returns the resulting string. The
following characters are escaped: period (.
),
backslash (\
), plus sign (+
),
asterisk (*
), question mark
(?
), brackets ([
and
]
), caret (^
), parentheses
((
and )
), and dollar sign
($
).
Get Programming PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.