Funciones de strings
PHP Manual

quotemeta

(PHP 4, PHP 5)

quotemetaQuote meta characters

Descripción

string quotemeta ( string $str )

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

. \ + * ? [ ^ ] ( $ )

Parámetros

str

The input string.

Valores devueltos

Returns the string with meta characters quoted.

Notas

Note: Esta función es segura binariamente.

Ver también


Funciones de strings
PHP Manual