StackOverflow has been a great learning center for me, Being an intermediate level programming student, I am now stuck and failing to understand how to manipulate a multidimensional array, I have searched a lot, the tutorials, here... but everything seems very specific to its writer need, so I cannot understand the concept of a multidimensional array
If you dont like my question, at least do not negative vote... just try to understand that I am still in a learning process and using every resource i can (not being able to join a college because of work)
The array I am trying to understand is
$myArray = array(
"ChkIns" => array('Morning','Evening'),
"Times" => array('11:00:00','16:00:00')
//There may be more data here later
);
I should be able to get the value of ChkIns and Times using a foreach loop but I dont want to use sort of hardcoded code because the above mentioned array may have more indices.
What I am trying to figure out that How to obtain data from an array which have further sub arrays using a foreach loop
foreach($myArray as $key => $val)??