Page 1 of 1

Hiding or replacing a text

Posted: Fri Feb 05, 2010 12:13 pm
by techkid
Hello,

Is there any way to do this.

Suppose I've a text like this:

Code: Select all

nobody@nobody.com (techkid)
Is there anyway to hide or replace that "nobody@nobody.com" through php.

Thanks in Advance.

Re: Hiding or replacing a text

Posted: Fri Feb 05, 2010 1:31 pm
by AbraCadaver

Code: Select all

$text = "nobody@nobody.com (techkid)";
$text = str_replace("nobody@nobody.com", "", $text);

Re: Hiding or replacing a text

Posted: Fri Feb 05, 2010 3:02 pm
by techkid
wow. it really works. thanks a lot.