Imagine I have a parent array...
$parent_array
with two variables that are themselves arrays...
$child_array_1 = $parent_array[0];
$child_array_2 = $parent_array[1];
and each one of those children stores a couple of values, lets say Name, ID number, and Age...
$age = $child_array_1[2]
What I need to accomplish is simple but destroying me - I am a newbie.
I have a basic formula for ordering the individuals by age and printing them out to the screen. Simply loop through picking out the values of the $child_array...[2]'s - compare them against one another and have them placed into an array in ascending order, and then loop through that ordered array, matching each age to the appropriate $child_array_#[3] and then printing out the parent... Make sense?
Well, i know how to extract the data from these arrays using the (xml dom) get_content() method, but once I have all of these values (in this case ages) how do i compare them against one another and then put them into an array in the correct order...
get what im saying? anyone got a better idea?
help plz...
Russ