I have following mysql php array result.
while($row = mysql_fetch_array($retval, MYSQL_ASSOC))
{
echo '<tr>';
echo "<td> {$row['cust']} </td>".
"<td> {$row['manu']} </td>".
"<td> {$row['model']} </td>".
"<td> {$row['serial']} </td>".
"<td> {$row['capacity']} </td>".
"<td> {$row['firmware']} </td>".
"<td> {$row['deviceid']} </td>".
"<td> {$row['ataver']} </td>".
"<td> {$row['ltime']} </td>".
"<td> {$row['date']} </td>".
"<td> {$row['ourref']} </td>".
"<td> {$row['result']} </td>";
/** foreach($row as $key=>$value) {
echo '<td>',$value,'</td>';
}*/
echo '</tr>';
"<td> {$row['capacity']} </td>".
array holds information like
250000000000 bytes [250 GB]
400000000000 bytes [400 GB]
500000000000 bytes [500 GB]
I want to delete everything including bytes.
So the desired output would look like
250 GB
400 GB
500 GB
How can i achieve this using above code?
Thanks well in advance.