Home > Q&A > body text
就是把键和值都移除..
foreach($arr as $k => $v ) { if($v>10) 删除arr[$k] }
面对疾风吧2016-11-10 16:44:02
$arr = [ 'test' => 'test', 'test1' => 'test1'];unset($arr['test'])print_r($arr);#####输出[ 'test1' => 'test1']
Home
Course
Q&A
My