on 07/09/02 1:51 AM, N. Pari Purna Chand ([EMAIL PROTECTED])
wrote:

> $newstr = ereg_replace ("\n", "<BR>", $newstr);

Instead, I think you'd have to escape the slash: "\\n"... but it's
irrelevant, because there's a function that does this for you:

$newstr = nl2br($newstr);


Also, you should try to use str_replace('was', 'is', $str), because it's
less resource intensive than ereg*


Justin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to