Developer Forums | About Us | Site Map
Search  
HOME > PHPMANUAL


Sponsors





Web Host
site hosted by netplex
Partners

Online Manuals

array_values

(PHP 4 )

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));
 ?>

This will output:

Array
(
    [0] => XL
    [1] => gold
 )

See also array_keys().

Copyright 2004-2024 GrindingGears.com. All rights reserved. Site hosted by NETPLEX