Jump to content

Add descriptor text to output in certain places


SF23103

Recommended Posts

Hello,

 

I'm trying to deal with a not-so-friendly API.  Instead of XML or JSON, it outputs content in html.  Here is an example:

===================================================<br/>
10:05 some text here 1789210011<br/>
===================================================<br/>

I have used str_replace to change the "======" line to a horizontal line, which worked great.

 

What I would like to do is add "Time:" before the displayed time, "Description:" before the 'some text here', and "ID Number:" before the 10 digit number.

 

Fortunately the output is formatted consistently, but is there a way to add what I want before and after all "##:##" and before the 10 digit number?

 

Of course it would be so much easier if this was XML, but it's not, and I have no control over what's being pushed to me. grrrrrr

 

 

 

 

 

 

Link to comment
Share on other sites

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.