guys I am trying to do this kind of loop.
$first_ex =
              array(
                 '1st' => array(
                    '1.1' => 'value1',
                    '1.2' => 'value2'
                    // and so on...
                 )
              );
$second_ex =
              array(
                 '1st' => array(
                    '1.1' => array(
                             1.1.1 => 'value'
                             // so on...
                    )
                    '1.2' => array(
                             1.2.1 => 'value'
                             // so on...
                    )
                 )
              );
As of now I can only do array in an array, but how can I make a code that it will automatically process all of the nested arrays no matter how many nested arrays are in there.
[Note] It does not answer my question.
 
    