Blogger Information
Blog 48
fans 0
comment 0
visits 36392
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
数组的回调处理
雨天的博客
Original
648 people have browsed it

实例

<?php
// 数组的回调处理
echo '<h3 style="color: #9A0000;">array_filter() 数组的回掉处理</h3>';
$k=array_filter($arr1,function($value){
  if($value!='css')
  {
    return $value;
  }
});
var_export($k);
echo '<br>';

echo '<h3 style="color: #9A0000;">array_walk() 数组的回掉处理</h3>';
array_walk($arr3,function(&$value,$key,$k){
  if($value!=$k)
  {
    exit('填写错误');
  }else {
    exit($key.':'.$value);
  }
},'2');

运行实例 »

点击 "运行实例" 按钮查看在线实例


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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!