Skip to content

Instantly share code, notes, and snippets.

@kraizt
Created April 7, 2017 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kraizt/115140074f7c0a59a3d6f779c1519484 to your computer and use it in GitHub Desktop.
Save kraizt/115140074f7c0a59a3d6f779c1519484 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',
],
[
'id' => 4,
'name' => 'Yadi Cahyadi',
],
[
'id' => 5,
'name' => 'Maya Maulani',
],
];
foreach($users as $user)
{
$name[] = $user['name'];
}
print_r($name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment