Skip to content

Instantly share code, notes, and snippets.

Created November 22, 2013 09:10
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 anonymous/7597039 to your computer and use it in GitHub Desktop.
Save anonymous/7597039 to your computer and use it in GitHub Desktop.
<?php
$result = array();
$ip_args = array();
foreach ((array) $array as $key) {
$ip_args[$key['ip']][] = $key;
}
foreach ($ip_args as $key) {
if (count($key) < 5) continue;
foreach ($key as $key => $value) {
$result[] = $value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment