PHP Manual by the PHP Documentation Group php.net
array_values
(PHP 4 , PHP 5)
array_values -- Return all the values of an array
Description
array
array_values ( array input)
array_values() returns all the values from the
input array and indexes numerically the
array.
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 array_keys().
© 2001 - 2009 CYGAD.NET | All rights reserved. |
Terms of Service |
About | Time data: GMT +1! | Portal Release X2.6.1 Beta | RunTime: 1.1407
Optimized for

Internet Explorer 6.0+,

Firefox 1.5+!