Re: [PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Justin Patrin
Gerard Samuel wrote: On Wednesday 18 February 2004 12:38 pm, Ben Ramsey wrote: I know that it may be somewhat irrelevant to solving the problem at hand (and, in fact, I think your current method is probably the best method), but I was just wondering why you needed to change the names of your keys

Re: [PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Gerard Samuel
On Wednesday 18 February 2004 12:38 pm, Ben Ramsey wrote: > I know that it may be somewhat irrelevant to solving the problem at hand > (and, in fact, I think your current method is probably the best method), > but I was just wondering why you needed to change the names of your keys > at all. Why i

Re: [PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Ben Ramsey
I know that it may be somewhat irrelevant to solving the problem at hand (and, in fact, I think your current method is probably the best method), but I was just wondering why you needed to change the names of your keys at all. Why is it not programmed so that the keys already have the names yo

Re: [PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Gerard Samuel
On Wednesday 18 February 2004 12:03 pm, Ben Ramsey wrote: > You might be able to create some function that uses a combination of > array_keys(), array_values(), and array_combine() to do what you want. > Check the manual at http://www.php.net/array for more information on > these functions. > True

[PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Ben Ramsey
You might be able to create some function that uses a combination of array_keys(), array_values(), and array_combine() to do what you want. Check the manual at http://www.php.net/array for more information on these functions. Gerard Samuel wrote: Im looking for the fastest way to modify array k