Created
July 21, 2016 14:52
-
-
Save jamesdube/f55ed90c68700e7d924bfe731a80cb48 to your computer and use it in GitHub Desktop.
Convert a Assoc Array to an Indexed One
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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