...

View Full Version : Reverse order of array then post contents



YourDirector
09-01-2011, 02:31 PM
Ok, so what I basically need to figure out the syntax for is this:

- Grab the names of each .xml file in a specified directory
- Set them into an array
- Reverse the order of the array
- Call a function which extracts specific elements from the file relative to the first item in the array
- Repeat this function for the next 4(for example) items in the array, then stop.

Any ideas?

Thanks

kbluhm
09-01-2011, 04:02 PM
Well you already have the first 3 steps covered from a previous topic (http://www.codingforums.com/showthread.php?t=235787).

For the 4th step, have a look at http://www.php.net/simplexml

For the 5th, have a look at my answer in yet another topic (http://www.codingforums.com/showthread.php?t=236705), or http://www.php.net/foreach



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum