php-general | 2001072
Date: 07/17/01
- Next message: Joseph: "[PHP] Re: Adding elements to an array"
- Previous message: Steve Brett: "Re: [PHP] email counter"
- Maybe in reply to: Sharat Hegde: "[PHP] Adding elements to an array"
- Next in thread: Joseph: "[PHP] Re: Adding elements to an array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
$MyArray['BUYVAL'] = 1.23;
> -----Original Message-----
> From: Sharat Hegde [mailto:shah <email protected>]
> Sent: 17 iulie 2001 13:11
> To: php-general <email protected>
> Subject: [PHP] Adding elements to an array
>
>
> Hello,
>
> I have a requirement to add elements to an associate array
> dynamically based
> on some conditions. I initialize the array with the 1st
> associate array
> element
> $MyArray = array('DATETIME' => $DateTime);
>
> How do I add more elements to this associate array. I am
> using PHP 3 and
> array_merge and other functions for arrays are not supported
> in PHP3. I am
> trying the following:
> $MyArray[] = array("BUYVAL" => "1.23");
> but if I try and get the value of $MyArray[BUYVAL], I get nothing.
>
> I am sure this must be simple, but I do not seem to be
> getting it right!!
>
> Regards,
> Sharat Hegde
> Phone: 6560360 Ext 4680
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail:
> php-list-admin <email protected>
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Joseph: "[PHP] Re: Adding elements to an array"
- Previous message: Steve Brett: "Re: [PHP] email counter"
- Maybe in reply to: Sharat Hegde: "[PHP] Adding elements to an array"
- Next in thread: Joseph: "[PHP] Re: Adding elements to an array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

