I have been doing some simple php codes with tables and arrays
<table>
<thead>
<tr>
<th># </th>
<th>Name</th>
<th>Governor</th>
<th>Party</th>
<th>Website</th>
</tr>
</thead>
<tbody>
<?php
$j = 1;
$x = 0;
while ($x < $arrayLength){
$x++;
$getData = explode("-",$separatedData[$x]);
$dataLength = count($getData);?>
<tr>
<td>
<?php echo $j++ ?>
</td>
<td>
<?php
$properString = str_replace($unwantedCharacters, "", $getData[0]);
echo $properString;
?>
</td>
<td>
<?php echo $getData[1] ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</body>
and I am getting this error "Undefined offset: 47"
Please I am not really use to php and I do not understand why I am getting this.