Anonymous user / 3.135.198.49 Log In Register
?
Wallet: 3.00
Daily Credits:
1.20 / 1.20

PHP Functions Online


array_values

(PHP 4, PHP 5)

array_valuesReturn all the values of an array

array array_values(array $array)

Checkout ? #

Item Description Item Price Your Price
Total

Preview #

${{ variable.param.name }} = {{ variable.param|getValue:variable.form:true }};
{{ call.result}} = ;

Description #

array array_values ( array $array )

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

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
)

See Also #