Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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