I need to explode <TD>
, but in code (I need to extract the data from another website that is not mine). There is <TD>
with many different attributes, so I can not just write
explode("<TD>",$tableA_data[1]));
And if I write it like
explode("<TD",$tableA_data[1]));
without >
mark, it will put that mark in my result. I tried to remove that mark with
str_replace('>',"", $tableA_data);
but it does nothing with result.
CODE:
$tableA_data = explode('<table border="0" cellspacing="0" class="evidenceUpadcuDetailTable">',$result1);
$tableA_data = str_replace('ALIGN="center" nowrap="nowrap">',"", explode("<TD",$tableA_data[1]));