- 博客(11)
- 资源 (8)
- 问答 (4)
- 收藏
- 关注
原创 php去除数组中重复的元素
面试上机题$a = [1, 2, 14, 2, 1]去除数组中重复的元素,留下元素14解决思路:要想得到14,必须要先把1和2找到,然后用差集的方法得到14解:$b = array_unique($a);$c = array_diff_assoc($a, $b);$d = array_diff($a, $c);var_dump($d);...
2021-11-23 08:46:39 360
原创 php无限极分类
php树状结构 public function actionIndex(){ $categories = array( array('id'=>1,'name'=>'电脑','pid'=>0), array('id'=>2,'name'=>'手机','pid'=>0), array('id'=>3,'name'=>'笔记本','pid'=>1), array('id'=>4
2021-11-23 08:38:09 197
JavaScript幸运大转盘.zip
2020-06-22
ImageMagick-6.9.5-Q16
2018-04-25
php集成开发工具nmp(nginx+mysql+php)免安装版
2018-04-25
navicat for mysql11
2017-12-20
Mindomo思维导图
2017-09-27
magento2.4.5安装出现报错问题
2023-01-18
mangento2.45安装报错
2023-01-18
magento授权报错
2023-01-11
magento1.9的rest登录地址是什么?
2023-01-11
magento能开发app接口吗?
2023-01-11
magento1.9集成信用卡支付
2021-12-16
TA创建的收藏夹 TA关注的收藏夹
TA关注的人