Foreach为数组中的3个变量

I am trying to loop three variables inside an array with a foreach loop.

My model to get my array is this

function pieChart($limit = null, $conditions = null) {
    //Get Data for PieChart
    $this->RecordDrug->virtualFields['sum'] ='COUNT(*)';
    $records = array();
    $records=$this->RecordDrug->find('list',
        array(
            'conditions' => $conditions,
            'fields' => array( 'Drug.drug', 'sum', 'Record.unit'),
            'order' => array('sum' => 'desc'),
            'limit' => $limit,
            'contain' => array( 'Drug', 'Record' ),
            'group'  => 'Drug.Drug'
            ));
    debug($records);
    return $records;
}

My debug gives me this:

//Record.unit = a
//Drug.drug = b,
//sum = c,

array(
  'a' => array(
     'b' => 'c'
   )
)

I want to be able to echo a, b , and 200 inside a foreach loop. How is that possible?

It looks your array is going 2 dimensions deep.. It's not usually in good practice to have nested foreach loops.. How about trying this:

foreach ($Array AS $Arr1_Values){
  if (is_array($Arr1_Values)){
    foreach ($Arr1_Values AS $Arr1_Nest)){
       echo $Arr1_Nest;
     }
  }else{
    echo $Arr1_Values;
  }
}