PHP array_values()


array_values() retrieves all values of an associative array.

<?PHP
	$arr=array("apple"=>"carbon","rice"=>"carbon","nuts"=>"fat","meat"=>"protein");
    $arr2=array_values($arr);
	foreach($arr2 as $element) echo "$element, "; //carbon, carbon, fat, protein, 
?>