hi there all...
i'm currently using a textarea for my form...
i realize that if i uses the nl2br() function..
i will be able to change any new line triggered by the 'enter' key
into <BR>
now the problem is that..
i want to change the <BR> to a space..
(or 'xx' in the following example)
here's my code..
$mystring = "hi there <BR> buddy";
$todo_desc = (str_replace(<br>', 'xx', $mystring));
echo $mystring;
unfortunately, the above code doesnt convert the <BR> to XX
it returns:
hi there
buddy
how can i replace the <BR> ??
is it even possible??
-jassh