Re: Array numeric key -> alpha key replacement
| From: | Jochem Maas | Date: | Wed, 05 Dec 2007 18:27:26 +0000 |
| Subject: | Re: Array numeric key -> alpha key replacement | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265473@lists.php.net to get a copy of this message | ||
scotdiddle@silverdarkroom.com wrote:
> Quoting Jochem Maas <jochem@iamjochem.com>:
>
...
>>
>> $newArray = array('FAF1', 'ODM1', /* bla bla bla */);
>> $inputArray = array_combine($newArray, $inputArray);
>>
>> I guess reading through this page was too much trouble for you:
>>
>> http://php.net/array
>
> Jochem: Nope, not too much trouble... I tried to find what I was looking
> for on http://php.net/array.
>
> Sorry I was such a bother.
no bother, if everyone read the manual and found their answers there who would
I vent my speel at?
I'll assume that array_combine() does the trick for you.