public function showDebitor($input) { $invoice = new \Hyperized\Wefact\Debtor(); $shows = $invoice->show($input); foreach ($shows as $show) { if (is_array($show)) { foreach ($show as $key => $value) { if (is_array($value)) { foreach ($value as $key => $val) { echo ' -' . $key . ':' . $val . '<br>'; } } else { echo $key . ':' . $value . '<br>'; } } } } }