我用array_map
here测试了内联匿名函数
原文链接:https://www.f2er.com/php/130838.html它的工作,但是当我尝试与user_Meta相同它不工作..
$user_Meta = Array ( [interest] => Array ( [0] => Array ) [type] => Array ( [0] => Array ) [user_status] => Array ( [0] => deny) [firstname] => Array ( [0] => ) [lastname] => Array ( [0] => B ) [email] => email@cc.com ) $user_Meta = array_map(function($a) { return $a[0]; },$user_Meta);