Skip to content

Instantly share code, notes, and snippets.

@jamesdube
Created July 21, 2016 14:52
Show Gist options
  • Save jamesdube/f55ed90c68700e7d924bfe731a80cb48 to your computer and use it in GitHub Desktop.
Save jamesdube/f55ed90c68700e7d924bfe731a80cb48 to your computer and use it in GitHub Desktop.
Convert a Assoc Array to an Indexed One
static function assocToIndexed(array $assocArray)
{
$numeric = array();
foreach ($assocArray as $item=>$value){
$numeric[] = $value;
}
return $numeric;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment