Hi
Please can someone help me out. I am trying to perform two functions (nl2br and stripslashes) on a string whilst displaying it:
if ($view == 'extra')
echo nl2br,stripslashes($value);
This isn't working - I've tried writing a function to perform this, but had no success:
function noel($value) {
nl2br($value);
stripslashes($value);
}
if ($view == 'extra')
echo noel($value);
Can anyone help me write this correctly, or point out where I'm going wrong.
Thanks
Noel