PHP 4, PHP 5, PHP 7, PHP 8
array_values - Return all the values of an array

array_values( array$array ): array

array_values returns all the values from the array and indexes the array numerically.



The array.

Return Values

Returns an indexed array of values.

Related Functions

Example of array_values

Show all examples for array_values

PHP Version:

Function array_values:

Arrays Functions

Most used PHP functions