mathceleb
06-01-2011, 09:32 PM
This is another question that arose from the task from this thread:
http://www.codingforums.com/showthread.php?t=227815
Now, I need to loop through any school that matches the name, for any city and any state.
$school="University of Illinois";
foreach($codes[][][$school] as $school_key=>$school_value){
}
I tried the above with no success. I need to have the loop move to the 3rd key automatically and just grab any school with that name.
I'm trying to avoid looping through each city, then each state, then each school if possible.
array_keys perhaps?
http://www.codingforums.com/showthread.php?t=227815
Now, I need to loop through any school that matches the name, for any city and any state.
$school="University of Illinois";
foreach($codes[][][$school] as $school_key=>$school_value){
}
I tried the above with no success. I need to have the loop move to the 3rd key automatically and just grab any school with that name.
I'm trying to avoid looping through each city, then each state, then each school if possible.
array_keys perhaps?