PHPize Online / SQLize Online

Popular

array_values

Tags: PHP 5.x PHP 7.x PHP 8.x

array_values — Return all the values of an array.

Description

array_values(
    array $array
): array
array_values() returns all the values from the array and indexes the array numerically.

Parameters

array
The input array.

Return Values

Returns an indexed array of values.