echo "<td><font color='#0000ff'><b> Longitude </b></font></td>"; if ($ubt1 == 1) { echo "<td> </td>"; } else { echo "<td><font color='#0000ff'><b> House<br>position </b></font></td>"; } echo '</tr>'; if ($ubt1 == 1) { $a1 = SE_TNODE; } else { $a1 = LAST_PLANET; } for ($i = 0; $i <= $a1; $i++) { echo '<tr>'; echo "<td>" . $pl_name[$i] . "</td>"; echo "<td><font face='Courier New'>" . Convert_Longitude($longitude1[$i]) . " " . Mid($rx1, $i + 1, 1) . "</font></td>"; if ($ubt1 == 1) { echo "<td> </td>"; } else { $hse = floor($house_pos1[$i]); if ($hse < 10) { echo "<td> " . $hse . "</td>"; } else { echo "<td> " . $hse . "</td>"; } } echo '</tr>'; } echo '<tr>'; echo "<td>   </td>"; echo "<td>   </td>";
function testmid() { $this->assertEquals('s', Mid("asdf", 2, 1), 'Test1'); $this->assertEquals('sdf', Mid("asdf", 2, 5), 'Test2'); $this->assertEquals('df', Mid("asdf", 3), 'Test3'); $this->assertEquals('asdf', Mid("asdf", 1), 'Test4'); }