Returns the values of an associative array.
This function returns all values of an associative array. The result returned is in the form of an indexed array.
<?php
$array1 = array(
"strawberry" => "red",
"blueberry" => "blue",
"raspberry" => "red");
// find colors
foreach (array_values($array1) as $color)
print "$color ";
?>
red blue red
All the values in the associative array are printed.