Skip to content

Instantly share code, notes, and snippets.

@jsdecena
Created February 27, 2020 03:26
Show Gist options
  • Save jsdecena/d4a92e1203e17bf041383d0239a6abc0 to your computer and use it in GitHub Desktop.
Save jsdecena/d4a92e1203e17bf041383d0239a6abc0 to your computer and use it in GitHub Desktop.
recursion
// Result should be:
`Doe, John & Doe, Jane & Smith, James`
```
$array = [
'first_name' => 'John',
'last_name' => 'Doe,
],
[
'first_name' => 'James',
'last_name' => 'Smith,
]
[
'first_name' => 'Jane',
'last_name' => 'Doe,
]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment