quotemeta(): escapes \ + * ? [ ^ ] ( $ ) : String Escape « String « PHP






quotemeta(): escapes \ + * ? [ ^ ] ( $ )


<?
$literal_string = 'AAA ($, *) are very special to me\n<BR>';
$qm_string = quotemeta($literal_string);
echo $qm_string;

?>
           
       








Related examples in the same category

1.To embed a single quote in a singly quoted string, escape it with a backslash
2.addslashes(): escapes quotes, double quotes, backslashes, and NULLs with backslashes
3.String SQL command escape