array_values
Return all the values of an array
Description
array array_values(array $array
)
Parameters
-
array
-
The array.
Return Values
Returns an indexed array of values.
Examples
Example #1 array_values example
<?php
$array = array("size" => "XL", "color" => "gold");
print_r(array_values($array));
?>
The above example will output:
Array
(
[0] => XL
[1] => gold
)