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