Hi, i'm making a back end control panel for a website of mine and i'm trying to find out how i would be able to strip /n and replace them with <BR>. Also when the script see's ' it replaces it with /'
I know you can write this into once ereg_replace expression, but was wondering if it's able to use the same ereg to do both jobs on the same string?
this is what i have so far
function nremover($msg){
$str = $msg;
$pat = "/n";
$rep = "<BR>";
return ereg_replace($pat, $rep, $str);
}
I know you can write this into once ereg_replace expression, but was wondering if it's able to use the same ereg to do both jobs on the same string?
this is what i have so far
function nremover($msg){
$str = $msg;
$pat = "/n";
$rep = "<BR>";
return ereg_replace($pat, $rep, $str);
}