downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<array_unshiftarray_walk_recursive>
Last updated: Thu, 26 Jun 2008

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.

Parameters

input

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



add a noteadd a note User Contributed Notes
Return all the values of an array
There are no user contributed notes for this page.




<array_unshiftarray_walk_recursive>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs