No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher une fonction PHP

array_values

(PHP 4, PHP 5, PHP 7)

array_valuesReturn 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.

PHP: array_values - Manual Home of Manuel PHP  Contents Haut

Return Values

Returns an indexed array of values.

PHP: array_values - Manual Home of Manuel PHP  Contents Haut

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
)

PHP: array_values - Manual Home of Manuel PHP  Contents Haut

See Also

  • array_keys() - Return all the keys or a subset of the keys of an array
  • array_combine() - Creates an array by using one array for keys and another for its values

Find a PHP function
Error Infobrol

Can not display this page of the Infobrol website

Type of error (18-01)

Unknown format specifier "&"

Please try again in a few minutes…

Return to the home page




Steph