Skip to content

Instantly share code, notes, and snippets.

@kraizt
Created April 7, 2017 08:29
Show Gist options
  • Save kraizt/83ee786e75be6a3b7e93efa1f2f7d510 to your computer and use it in GitHub Desktop.
Save kraizt/83ee786e75be6a3b7e93efa1f2f7d510 to your computer and use it in GitHub Desktop.
<?php
$users = [
[
'id' => 1,
'name' => 'Adimas Lutfi Wicaksono',
],
[
'id' => 2,
'name' => 'Salman Alfarisi',
],
[
'id' => 3,
'name' => 'Muhammad Sholeh',
],
];
$users_new = [
[
'id' => 4,
'name' => 'Yadi Cahyadi',
],
[
'id' => 5,
'name' => 'Maya Maulani',
],
];
$user = array_merge($users, $users_new);
print_r($user);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment