11-13-2007, 05:49 AM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Sep 2007
Location: Leeds, UK
Posts: 141
Thanks: 6
|
Question regarding array_push
Hey, was fooling around with some array functions, and just wondered...
Ya know how array_push adds a new value to your array? Can it also add a key, because I tried:
PHP Code:
array_push($array, 'Chris' => 'Mellor');
but got an error.
I'm sure it's possible, anybody an idea?
__________________
Not quite a n00b...
|
|
|
|