Link to home
Start Free TrialLog in
Avatar of APD Toronto
APD TorontoFlag for Canada

asked on

Rename Array Indexes

Hi  Experts,

How can I rename indexes of an associatave array in PHP Dynamically? I found the following https://stackoverflow.com/questions/9605143/how-to-rename-array-keys-in-php, but I dont understand the array_map 100%, even from php.net

Also, what if my array has 20 indexes and I only need to rename 2?

Thank you
ASKER CERTIFIED SOLUTION
Avatar of gr8gonzo
gr8gonzo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of APD Toronto

ASKER

Thank you!