Re: Array numeric key -> alpha key replacement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



scotdiddle@xxxxxxxxxxxxxxxxxx wrote:
> Quoting Jochem Maas <jochem@xxxxxxxxxxxxx>:
> 

...

>>
>> $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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux