Is there a easy way to push into associative array???
Posted: Thu Sep 01, 2005 6:41 pm
I have a got an initially defined associative array.
I want to add elements to it (key, value pair) when required.
so looking for an equivalent of array_push() or any easiest way to do it.
ex:
initially
$tempArray = array("john"=>"millers")
after some time I want to add
"peter" => "wright"
I want to add elements to it (key, value pair) when required.
so looking for an equivalent of array_push() or any easiest way to do it.
ex:
initially
$tempArray = array("john"=>"millers")
after some time I want to add
"peter" => "wright"