Created
April 7, 2017 08:05
-
-
Save kraizt/115140074f7c0a59a3d6f779c1519484 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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