Jump to content

[SOLVED] Script Help


ainoy31

Recommended Posts

Hello-

I have the following data I need to extract from.

 

Status:</font></span></td>
<td align="left" style="height: 18px; font-weight: normal; font-size: 10pt;">
<span id="FormView1_pro_stageLabel" wrap="false" style="display:inline-block;"><font face="Arial,Helvetica,Microsoft Sans Serif" color="#000040" size="2">DELIVERED - 12/28/2007</font></span></td>

 

I am only trying to get the word DELIVERED out of the html tags.  Also, there could be another word or two about the status.  This one just happens to be DELIVERED.  So, here is my code I am trying to capture it.

 

foreach(explode("\n",$data) as $line)
{
if(stristr($line, 'Status:'))
{
preg_match_all('#(Status):.*?(\w[a-zA-Z]/)#is', $data, $matches, PREG_SET_ORDER);
print_r($matches);
}
}

 

Much appreciation.  AM

Link to comment
https://forums.phpfreaks.com/topic/89581-solved-script-help/
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.