array_values

array_values -- Return all the values of an array

Description

array array_values(array input);

array_values() returns all the values from the input array.

Example 1. array_values() example

$array = array("size" => "XL", "color" => "gold");
array_values($array);    // returns array("XL", "gold")
      

Note: This function was added in PHP 4.0.