★ wanayoo — archive 1999 http://www.php.net/manual/ja/function.array-values.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Arrays
Quick Reference
English version of this pageGerman version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Arrays
* array
* array_count_values
* array_diff
* array_flip
* array_intersect
* array_keys
* array_merge
* array_merge_recursive
* array_multisort
* array_pad
* array_pop
* array_push
* array_rand
* array_reverse
* array_shift
* array_slice
* array_splice
* array_unshift
* array_values
* array_walk
* arsort
* asort
* compact
* count
* current
* each
* end
* extract
* in_array
* key
* krsort
* ksort
* list
* next
* pos
* prev
* range
* reset
* rsort
* shuffle
* sizeof
* sort
* uasort
* uksort
* usort
Manual: array_values
View the source code for this pageSearch the site



Previous page
 array_unshift
 Updated
Sat, 12 Aug 2000
array_walk 
Next page


array_values

(PHP4 )

array_values -- 配列の全ての値を返す

説明

array array_values (array input)

array_values()は、配列input から全ての値を返します。

例 1. array_values()の例


$array = array("size" => "XL", "color" => "gold");
array_values($array);    // array("XL", "gold")を返します
      

注意: この関数は、PHP 4.0で追加されました。


User Contributed Notes: array_values


scott@cyberwar.com
15-Jul-2000 02:41
Below is a function that I wrote that acts the same as array_values, but works in PHP3:


<pre>
function array_values ($x) {
for($i=0;$i&#60;count($x);$i++) {
$y=each($x);
$z[$i]=$y[1];
}
return $z;
}
</pre>



adamh@kickmedia.com
13-Aug-2000 03:18
The function above works great - But when php was thrown by the "$i&#60;count($x)" part, I realized that
what he meant was "$i<count($x)"



 About Notes


Previous page
 array_unshift
 Updated
Sat, 12 Aug 2000
array_walk 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.