PHP.nl

array_values

array_values

Return all the values of an array

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

array_values``array

arrayThe array.

Returns an indexed array of values.

Voorbeeld: example

<?php
$array = array("size" => "XL", "color" => "gold");
print_r(array_values($array));
?>
Array
(
    [0] => XL
    [1] => gold
)

array_keys``array_combine