Blogger Information
Blog 250
fans 3
comment 0
visits 321690
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
函数each()在数组中的使用方法
梁凯达的博客
Original
1141 people have browsed it

/*
  each() 函数返回当前元素的键名和键值,并将内部指针向前移动。
 该元素的键名和键值会被返回带有四个元素的数组中。两个元素(1 和 Value)包含键值
  两个元素(0 和 Key)包含键名。
  */
 
 $arr1 = array(
  '1'=>'张一',
  '2'=>'张二',
  '3'=>'张三',
  '4'=>'张四'
 );
 var_dump($arr1);
 echo '<hr />';
 var_dump(each($arr1));
  var_dump(each($arr1));
   var_dump(each($arr1));
    var_dump(each($arr1));
 

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post