Create a table of all invoices from Stripe API in PHP

I am trying to create a table in PHP of all invoices in the table with the Stripe API.

This is my code so far:

$result = $stripe->invoices->all(['limit' => 100]);

echo $result;

I don’t know how I can just display the invoice id, customer name and amount in a table. This is my first time working with Stripe and API’s.