[BNM] quick PHP string functions question

Jeremy Keith bnmlist@brightonnewmedia.org
Mon Mar 24 17:02:12 2003

> Is there a string function that takes a string, strips out any 
> occurrences of a small substring (or replaces a substring with "") and 
> then returns the altered string. I've got a string that contains <br 
> /> tags that I want to strip out before I display the text in a text 
> input box.

$mytext=str_replace("<br />",""",$mytext);

or in your case:


if you're looking to take out all the HTML.



Jeremy Keith

a d a c t i o