Created
May 25, 2010 00:40
-
-
Save yeco/412610 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /** | |
| * @Push and element onto the end of an array with associative key | |
| * | |
| * @param array $array | |
| * | |
| * @string $key | |
| * | |
| * @mixed $value | |
| * | |
| * @return array | |
| * | |
| */ | |
| function array_push_assoc($array, $key, $value){ | |
| $array[$key] = $value; | |
| return $array; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment