i'm trying to process 2 numerically indexed arrays, one of which is multidimensional, to result in an indexed array of associative arrays. the values from array #1 would ultimately be paired with any values contained in the nested array of corresponding numerical index from array #2. nested arrays that are empty in array #2 would be ignored.
Array #1:
$array1 = Array ( [0] => Below Expectation [1] => Meets Expectation [2] => Above Expectation )
Array #2:
$array2 = Array ( [0] => Array ( [1] => pc [2] => p ) [1] => Array ( [1] => mk [2] => ics [3] => sbl ) [2] => Array ( )
Goal Array
$arrayFinal = Array ( [0] => Array ( ['pc'] => Below Expectation ['p'] => Below Expectation ) [1] => Array ( '[mk'] => Meets Expectation ['ics'] => Meets Expectation ['sbl'] => Meets Expectation ) [2] => Array ( )
i'm really pulling out my hair on this one as i can't even figure the conceptual approach; any help would be great.
thanks,
brian