Welcome to WebmasterWorld Guest from 54.196.104.66

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Php function for deleting parsed content

     
6:38 am on May 29, 2008 (gmt 0)

Full Member

10+ Year Member

joined:May 4, 2005
posts:306
votes: 0


I`m trying to delete the "text here" in this string;

<div id=id1>text here</div>

What is the php function or code to do that?

Thanks in advance.

2:29 pm on May 29, 2008 (gmt 0)

Preferred Member

10+ Year Member

joined:Sept 28, 2002
posts:505
votes: 0


Hi Jcmiras,

Functions str_replace or preg_replace should do this.

Kind regards,
R.

3:05 pm on May 29, 2008 (gmt 0)

Full Member

10+ Year Member

joined:May 4, 2005
posts:306
votes: 0


thanks.