Add to an array
Posted: Wed May 02, 2007 7:00 pm
I have this array
I want to add 'b' => 2 to the array but I don't see how to do it.
I tried
but it doesn't let me specify a key?
Code: Select all
$array=array('a' => 1);I tried
Code: Select all
array_push():