hie i have this array which is showing in print_r
Array ( [service_list] => 
    Array ( [0] => 
        Array ( [ratechart_id] => 15 
                [country_id] => 15 
                [sp_id] => 1 
                [.5kg] => 135 
                [1kg] => 225 
                [1.5kg] => 290 
                [2kg] => 360 
                [2.5kg] => 425 
                [3kg] => 480 
                [3.5kg] => 530 
                [4kg] => 585 
                [4.5kg] => 640 
                [5kg] => 690 
                [excess] => 100 
                [transit_time] => 4 
                [time_created] => 2016-05-09 18:24:14 
                [modified_date] => 0000-00-00 00:00:00 
            ) 
        ) 
        [volume] => 5.95kg 
    )
now i want to retrieve the value of volume which is 5.95kg
i tried using the foreach loop but i am not being able to get the value which is by the way i am using codeigniter by which from controller i m calling the function which is
$data['service_list'] = $this->home_model->Search();
$data['volume'] = $this->input->post('volume');
foreach ($list as $row)
{
 echo $row['volume'];
}
 
     
     
    