<?php
arr array_values ( arr $array )
where,
$array = The working array
?>
<?php
$arr01 = [ "K" => 2, "L" => 8,
"M" => 18, "N" => 32,
"O" => 32, "P" => 18,
"Q" => 8 ];
$vals01 = array_values($arr01);
echo 'The given ARRAY:<br><pre>';
print_r($arr01);
echo '</pre><br><br>After applying array_values:<br><pre>';
print_r($vals01);
echo '</pre>';
?>
<?php
$arr02 = array("RGB" => array("RED", "GREEN", "BLUE"),
"HSB" => array("HUE", "SATURATION", "BLACK") );
$vals02 = array_values($arr02);
echo 'The given ARRAY:<br><pre>';
var_dump($arr02);
echo '</pre><br><br>After applying array_values:<br><pre>';
var_dump($vals02);
echo '</pre>';
?>