if ($field == '[-%COMMAND%-] [-%INFO%-]') { $str = str_replace('%COMMAND%', '@a', $field); $str .= str_replace('%INFO%', 'You have 10 access in #test', $field); die($str);