Here is my array output in browser which i need to print as row and column associatively in PHPEXCEL.Please suggest me how to export it as row and columns.
FirstArray
(
    [0] => EY>Yes
    [1] => Media Type>Category B
    [2] => Coverage Type>Quote
    [3] => Industry Programs>Communications
    [4] => Score>1
) 
code -
while ($i < count($labels)) {
                $j = 0;
                while ($j < count($dd1)) {
                    // for($j=0;$j<count($dd1);$j++) {
                    $temp = explode(">", $dd1[$j]);
                    if ($temp[0] == $labels[$i]) {
                        $name = explode(">", $dd1[$j]);
                       echo '<pre>First';
                        print_r($name);
                    }
                    $j++;
                }
complete code i am trying to print $name array as row and column -
  $inn_table = "";
for($i=0;$i<count($labels);$i++) {
 for($j=0;$j<count($dd1);$j++) {
                  $temp = explode(">",$dd1[$j]);    
                 if($temp[0]==$labels[$i]) {
                     $name = explode(">",$dd1[$j]);
//here i need to print my $name array data
        }
  }
   echo $inn_table; 
 
     
    