to get data from array in php :     i have to echo the value from array . In an array we have two feilds . Need to fetch specific feilds.
   
   My code is this 
     $fields = array(
                'name' => $name,
                'age' => $age,
            );
    
    
    Need to get the name only in result.I have done this . But showing Array.
    

    foreach ($fields as $key => $value) {
    		    echo $value;
    		}