Jump to content

Take something our of string


kirill578

Recommended Posts

Not sure about that.. but this might

 

str_replace($searchForThis, $replaceWithThis, $fromThis, $passSomethingHereToGiveItAmountOfReplacements);

 

What you can do with this, is like take tags like the code tags used on this website, and replace them with things like < div > and < table >.... Not sure what you really want to achieve though, could you make it a bit clearer?

 

The function thorpe posted should really do what you want otherwise.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.