View Single Post
Old 11-13-2007, 05:49 AM   #1 (permalink)
CMellor
The Acquainted
Upcoming Programmer 
 
CMellor's Avatar
 
Join Date: Sep 2007
Location: Leeds, UK
Posts: 141
Thanks: 6
CMellor is on a distinguished road
Default 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...
CMellor is offline  
Reply With Quote