I'm using an array to store the names of other arrays which are dynamically generated elsewhere. I need to loop through the "names" array and access the contents of the "named" arrays. Something like this:
$names = array("one", "two", "three");
$one = array("a", "b", "c");
$two = array("c", "d", "e");
$three = array("f", "g", "h");
foreach ($process_array in $names) {
// how to access the contents of $one, $two and $three using only $names??
}
I'm preety sure I ought to be able to utilize variable variables somehow but all of the examples I've read show the logical inverse of what I'm trying to do (unless I'm misunderstanding the basic principles - entirely possible!)
Many thanks for any and all advice.