array_values Return all the values of an array Description arrayarray_values arrayinput array_values returns all the values from the input array. <function>array_values</function> example "XL", "color" => "gold"); print_r(array_values ($array)); ]]> This will output: XL [1] => gold ) ]]> This function was added to PHP 4, below is an implementation for those still using PHP 3. Implementation of <function>array_values</function> for PHP 3 users See also array_keys.