PHP Manual
Prev |  | Next

# 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
      1
      2 $array = array("size" => "XL", "color" => "gold");
      3 array_values($array);    // returns array("XL", "gold")
      4

> Note: This function was added in PHP 4.0.

Prev | Home | Next
array_unshift | Up | array_walk