Created
January 31, 2019 14:06
-
-
Save livevasiliy/fdf3c95a345a11f1cc4bf61cf4819cdd to your computer and use it in GitHub Desktop.
Push in end value in associative array [EN] | Добавляет в конец значения в ассоциативный массив [RUS}
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
<?php | |
/** | |
* Push in end value in associative array. | |
* Добавляет в конец значение в ассоциативный массив. | |
* @return array | |
*/ | |
function array_push_associative($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