hello
trying to replace all paragraph breaks with <p></p> but seems ereg_replace only wants to replace single whitespaces and not double spaces for example, here is my code:
$var = ereg_replace(" ","<p></p>",$copy);
this does nothing but however if i use :
$var = ereg_replace(" ","<p></p>",$copy);
then it replaces every whitespace with <p></p> in other words between every sentence.
how do I solve this?
thanx