企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
``` <?php /*二维数组去掉重复值*/ $cc=array( '0' => array ( 'wx_nickname' => '江淮智库', 'wx_name' => 'anhui-sky', 'url_times' => '0' ), '1' => array ( 'wx_nickname' => '安徽发布', 'wx_name' => 'anhuifabu', 'url_times' => '0' ), '2' => array ( 'wx_nickname' => '安徽发布', 'wx_name' => 'anhuifabu', 'url_times' => '0' ) ); $ee=[]; foreach ($cc as $k => $v) { if (!in_array($v['wx_nickname'],$ee)) { $ff[]=$v; $ee[]=$v['wx_nickname']; } } var_dump($ff); ?> ```