Skip to content
Advertisement

PHP – Show Array as HTML Table

I have this code which pulls an array of IP and MAC addresses from my server.

JavaScript

This is what it looks like on my browser, ranging from 0 to 20 in this case.

Array Example

Now I’m trying to show the array as a nice HTML table. Any ideas how I can do that using my code structure above?

I started writing some code but it doesn’t work at all and I can’t figure it out. I’m no PHP expert. I’m more of a C/C++ programmer 😛

JavaScript

Something like this is what I’m after

Table Example

Thanks.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement