Q:

Php array to list or table

I have this php:
print_r($lack->call('channels.archive'));

which returns: 
Array ( [ok] => 1 [url] => https://thename.slack.com/ [team] => theTeam [user] => jason [team_id] => T1EDES561 [user_id] => U0DD74SB8 ) 

How can I get that array into a html list or table?

A:

Short, one line code solution:
echo "<ul><li>" . implode('</li><li>', $lack->call('channels.archive')) . "</li></ul>";

An example here.

