Re: changing a key in an array

From: Date: Wed, 22 Jan 2003 15:40:07 +0000
Subject: Re: changing a key in an array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132613@lists.php.net to get a copy of this message
I had to do something like this not to long ago. Luckily it hit me that I shouldn't be changing keys, you don't do it in a database, so you really shouldn't do it in an array. I ended up adding a "column" to my array that contained the name. Then I didn't need to change keys and it worked just as well, and easier. On Tuesday, January 21, 2003, at 08:47 AM, David T-G wrote:
I want to change the key 't' to, say, 'tmp', is there a way to change it or do I have to use the brute force --
Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577

« previous php.general (#132613) next »