RE: [PHP] Change 'key' names of an associative array.
| From: | Altunergil, Oktay | Date: | Tue, 15 May 2001 20:19:41 +0000 |
| Subject: | RE: [PHP] Change 'key' names of an associative array. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-52927@lists.php.net to get a copy of this message | ||
Yes. But I want to change the name of the key, not the value. Plus I want to
be able to do this without creating an extra key/value pair for each
conversion I do.
oktay
-----Original Message-----
From: Jack Dempsey [mailto:dempsejn@georgetown.edu]
Sent: Tuesday, May 15, 2001 4:22 PM
To: Altunergil, Oktay; php-general@lists.php.net
Subject: RE: [PHP] Change 'key' names of an associative array.
have you tried http://www.php.net/manual/en/function.strtoupper.php
-jack
-----Original Message-----
From: Altunergil, Oktay [mailto:oktay@ForSoftInc.com]
Sent: Tuesday, May 15, 2001 4:15 PM
To: php-general@lists.php.net
Subject: [PHP] Change 'key' names of an associative array.
I have been trying to convert a MySQL application to Oracle. Oracle needs
the field names to be upper case.
For this reason even if I can fetch the result row, I can't access it by
$row[name] because I have to do
$row[NAME].
Is there a way to change the the key name to upper case, without making a
copy.? (I mean without creating another array key with the same name in
upper case)
Thanks.
Oktay Altunergil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net