Menu
Hi
I want to do an array_push while assigning a key to the value I push. array_push doesn’t allow that so i wrote my own.
[code=php]
function array_push_key (&$array, $key, $value) {
$array[$key] = $value;
}
What do you guys think about it? is it usefull or is there a way to do it better