String Funkcje
PHP Manual

quotemeta

(PHP 4, PHP 5)

quotemetaQuote meta characters

Opis

string quotemeta ( string $str )

Returns a version of str with a backslash character (\) before every character that is among these:

. \ + * ? [ ^ ] ( $ )

Parametry

str

The input string.

Zwracane wartości

Returns the string with meta characters quoted, or FALSE if an empty string is given as str.

Notatki

Informacja: Ta funkcja jest bezpieczna dla danych binarnych.

Zobacz też:


String Funkcje
PHP Manual