[Xerte] Re-indexing an array

Patrick Lockley Patrick.Lockley at nottingham.ac.uk
Tue Oct 26 13:54:21 BST 2010


Slicing? Splicing? 

Array to string. Remove that entry. Add it to the beginning. String to array?
________________________________________
From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]
Sent: Tuesday, October 26, 2010 1:18 PM
To: Xerte list
Subject: [Xerte] Re-indexing an array

What's the most elegant way to promote an array item?

I have a 2 dimensional array of items.
I loop through those, and when a specific set of criteria matches, want to promote that to index [0]

Cheers,

Dave


More information about the Xerte mailing list