I am trying to retrieve value from a html page but I am getting Undefined offset error in PHP. I am trying to get 4th value based upon the date.
HTML Output:
<table width="438" border="1" bordercolor="#0066FF" cellspacing="0" cellpadding="0" class="gold-table" style=" line-height: 30px;
text-align: center;">
<tbody><tr style="font-weight:bold;" align="center">
<td>Date</td>
<td> 1 Item</td>
<td> 2 Item.</td>
<td> 3 Item.</td>
<td> 4 Item.</td>
</tr>
<tr>
<td>07/Nov/2018</td>
<td>10</td>
<td>20</td>
<td>30</td>
<td>40</td>
</tr>
PHP Code:
$split= explode("$dd", explode("<tbody>", $page)[0])[1];
echo $split;
$dd is todays date 07/November/2018 and $page is my testhtml page
Expected Output 07/Nov/2018 40