Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

array_values

(PHP 4 , PHP 5)

array_values -- Liefert alle Werte eines Arrays

Beschreibung

array array_values ( array input)

array_values() liefert alle Werte des Arrays input mit einem numerischen Index.

Beispiel 1. array_values()

<?php
$array
= array ("größe" => "XL", "farbe" => "gold");
print_r(array_values ($array));
?>

Dies wird folgendes ausgeben:

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

Siehe auch array_keys().

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "PHP Handbuch". See Index Page for more info about Authorship and Copyright.

1999-2009 Linuxinfor.com. No rights reserved.