- unserialize: documentation ( source)
<?php
$result = [
['fine_type' => 'a:3:{i:0;s:2:"66";i:1;s:2:"13";i:2;s:1:"9";}'],
['fine_type' => 'a:3:{i:0;s:2:"99";i:1;s:2:"10";i:2;s:1:"1";}'],
];
$output = "";
$abc='';
foreach($result as $row)
{
$fine_types = unserialize($row['fine_type']);
echo "<td>";
foreach ($fine_types as $fine_type) {
$abc .="<div dir='rtl' lang='ar' class='fntype'> ".$fine_type.'</div>';
}
echo "</td>";
$output .= '
<tr>
<td style="text-align:right;">' . $abc . '</td></tr>';
}
echo $output;