Skip to content

Instantly share code, notes, and snippets.

@kraizt
Created April 7, 2017 07:54
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/3a7d21960cc9f7b7f4f2ce84deafd6a5 to your computer and use it in GitHub Desktop.
Save kraizt/3a7d21960cc9f7b7f4f2ce84deafd6a5 to your computer and use it in GitHub Desktop.
<?php
$users = [
'user1@example.com' => 'Adimas Lutfi Wicaksono',
'user2@example.com' => 'Salman Alfarisi',
'user3@example.com' => 'Muhammad Sholeh',
'user4@example.com' => 'Yadi Cahyadi',
'user5@example.com' => 'Maya Maulani',
];
foreach ($users as $key => $value)
{
$names[] = $value;
}
print_r($emails);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment