I have an email system, where user write a message and it will send the message. The main problem which I just found, consider this code
$findEmail = $th
Pre-parse the replacement text to escape the $ when followed by a number (remember that $n has special meaning when using in the replacement text). See the comment on the php.net docs page:
If there's a chance your replacement text contains any strings such as "$0.95", you'll need to escape those $n backreferences: