How to correctly print the result of the php code in Sublime Text 3? My code is:
<?php
$nums = array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10');
echo "<table><tr>";
foreach($nums as $i) {
foreach($nums as $j)
echo "<td>".($i*$j)."</td>";
if ($i != 10) echo "</tr><tr>";
};
echo "</tr></table>";
?>
Output:
Hope that it can be possible to get the result in console like this (from here)
Maybe I should use another syntax instead of
<tr></tr> <td></td> <table></table>
? Thanks for watching!