array_values

Return all the values of an array (PHP 4 )
array array_values ( array input )

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

Example 140. array_values() example

<?php
$array
= array("size" => "XL", "color" => "gold");
print_r(array_values ($array));
?>

This will output:

<?php Array
(
   [
0] => XL
   
[1] => gold
) ?>

See also array_keys().

This HTML Help has been published using the chm2web software.