Skip to content

Instantly share code, notes, and snippets.

@opdavies
Last active November 9, 2015 16:15
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 opdavies/bd3822d89347fe79b81d to your computer and use it in GitHub Desktop.
Save opdavies/bd3822d89347fe79b81d to your computer and use it in GitHub Desktop.
<?php
$users = [
[ 'uid' => 21 ],
[ 'uid' => 22 ],
[ 'uid' => 23 ],
[ 'uid' => 24 ],
[ 'uid' => 25 ],
[ 'uid' => 26 ],
];
$uids = [];
$uids = array_unique(array_merge($uids, array_map(function($user) { return $user['uid']; }, $users)));
var_dump($uids);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment