HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

quotemeta

Description

The quotemeta of String for PHP quote meta characters.

Syntax

quotemeta(
    string $string
): string

Parameters

string

The input string.

Return

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

Examples

1 · string

<?

$string = "$ ^ * ( ) + [ ] \ . ?";

$return = quotemeta($string);

echo $return;
\$ \^ \* \( \) \+ \[ \] \\ \. \?