Skip to content

Instantly share code, notes, and snippets.

@kraizt
Created April 7, 2017 07:52
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/fd19b7108e2908134eba7071e11a3ecc to your computer and use it in GitHub Desktop.
Save kraizt/fd19b7108e2908134eba7071e11a3ecc 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)
{
$emails[] = $key;
}
print_r($emails);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment