<?php
float deg2rad ( float $num )
where,
$num = The argument to process in degrees
?>
<table width="100%" border="1" cellspacing="5"
cellpadding="5"><tr><td colspan="3">deg2rad($arg)</td></tr>
<tr><td>DEGREES (°)</td><td>OPERATION</td><td>RADIANS ( rd )</td></tr>
<?php
// setlocale(LC_ALL, 'pt_PT', 'pt-PT', 'pt');
$degree01 = [ 0, 45, 90, 135, 180, 225, 270, 315, 360];
foreach($degree01 as $val01)
{
echo '<tr><td>' . $val01 . '</td>';
echo '<td>deg2rad( ' . $val01 . ' )</td>';
echo '<td>' . deg2rad($val01) . '</td></tr>';
}
?>
<tr><td colspan="3">ed48</td></tr></table>