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

quotemeta

Description

The quotemeta of String for PHP quote meta characters.

Syntax

quotemeta ( string $str ) : string

Parameters

str

The input string.

Return

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

Examples

1

<?

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

$return = quotemeta($str);
echo $return;

?>
\$ \^ \* \( \) \+ \[ \] \\ \. \?
HomeMenu