Re: ARRAY_PUSH with $key

From: Date: Thu, 18 Jul 2002 19:42:34 +0000
Subject: Re: ARRAY_PUSH with $key
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108324@lists.php.net to get a copy of this message
On Thu, Jul 18, 2002 at 03:40:58PM -0400, Joshua E Minnie wrote: > Hey all, > Does anybody know of a way to push an element onto an array with a > specific key? What I am trying to do is create a dynamically created > associative array. Here is a sample print_r of what an array would look > like: I don't understand the value of array_push(). I just add new elements by something like: $Array[$Key] = $Value; --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

« previous php.general (#108324) next »