Possible Duplicate:
Converting ereg expressions to preg
eregi_replace(“[\]”,'',$data) — what does this line do?
I am using phpmailer and it is using eregi_replace, I am trying to update this, would this be correct, I am not sure if I have the /i
in the right place?.
$body = eregi_replace("[\]",'',$body);
would become:
$body = preg_replace("[\]",''/i,$body);