How to display user_meta array as a table?

Ok, so I’m building a "Transactions" table for a user using user_meta array.

I’m new to this and trying to figure things out.

Basically, in practice I know how to store array to user_meta.

$  the_meta_array = array (     'type' => 'value-1',     'amount' => 'value-2',     'date' => 'value-3',     'method' => 'value-4',     'status' => 'value-5', );   $  user_id = 12345;   $  user_meta_key = 'transactions';   add_user_meta( $  user_id, $  user_meta_key, $  the_meta_array ); 

My question is how to display ‘transactions’ meta_key for that specific user in a table format like this:

----------------------------------------------------- type    | amount  | date          | method | status ----------------------------------------------------- deposit | $  15     | 2021,09,18    | Paypal | done ----------------------------------------------------- deposit | $  35     | 2021,09,14    | Paypal | done ----------------------------------------------------- cashout | $  25     | 2021,09,11    | Paypal | done 

Is it possible to display meta_key array as a loop?

Have no idea how practically do this.

I know it should be possible somehow.

Any help would be very appreciated.