Hello
on $list I have ..
$list = "<tr> <td>host</td><td></td><td colspan=2><img src=cct.jpg></td></tr>
<tr> <td>host2</td><td></td><td colspan=2><img src=cct.jpg></td></tr>
<tr> <td>host3</td><td></td><td colspan=2><img src=cct.jpg></td></tr>"
when I execute
preg_match_all('|<tr>.*</tr>|U', $list, $match);
echo $match;
echo $match[0];
echo $match[1];
echo $match[2];
echo $match[3];
all $match (and arrays) returns nothing ... why ? (I think it should return all the content of $list)
Is there something wrong on this part of code |<tr>.*</tr>|U' ?
I am trying to select all from <tr> to </tr>.
Thank you