Re: How to re-order an array
| From: | Paul Novitski | Date: | Sun, 11 Jun 2006 06:59:29 +0000 |
| Subject: | Re: How to re-order an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237751@lists.php.net to get a copy of this message | ||
At 06:44 PM 6/9/2006, jekillen wrote:
...
A script begins with one indexed array (not associative) and one other indexed array with the same values in a different order, the final order. I want to create an interim array and progressively re order the array until it matches slot for slot one of the original arrays. At this point the script is considered completed. One important factor is that I'm looking to write this in javascript and the interim array will be altered by the actions of a web page user.You've asked your question in such abstract terms it's hard to know what logic to suggest. Can you provide a concrete mini-example of the kind of array transformation you want to occur? Paul