I want to print json_encode array into a table format inside html.I tried the following method:
<table align="center">
<tr>
<td style="min-width: 400px; height: 400px; margin: 0 auto;margin-top:50px">
<div id="container2" style="min-width: 400px; height: 400px; margin: 0 auto;margin-top:50px"></div>
</td>
<td><?php echo json_encode($names1,JSON_NUMERIC_CHECK); ?></td>
</tr>
</table>
but sadly its just giving the output in normal json_encode. How to print the json_encode output as a table?