Re: array_push but with key, value pairs

From: Date: Tue, 17 Apr 2001 23:39:27 +0000
Subject: Re: array_push but with key, value pairs
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-49081@lists.php.net to get a copy of this message
Dean Hall wrote
Instead of 'array_push', do this: $input[$key] = $val; Hey thanks dean that did the trick, I was trying:
$array[] = $key . "=>" . $val which of course doesn't work hehe. Regards Joseph

« previous php.general (#49081) next »