• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need help replacing string contents using PHP

ENIAC

Member
Sorry for the vague title... Anyway i have a string that conains my needed information in the middle. Let's say it looks like this:

sdfasdf asdf asd ffsd sd f <-- Important Information --> asdf s gfg sdf asdf .

So the "sasdd" garble could be anything and a long as possible. How do I select all the information inbetween the <- - and --> using php. I am guessing a wildcard and str_replace but i cannot get it to work. Any suggestions?

Thanks.
 
Back
Top