- 博客(4)
- 收藏
- 关注
原创 composer学习
一,什么是composer? 是php的一个依赖管理工具,它允许你申明项目依赖的代码库,它会为你在项目中安装它们。 二,安装 composer官网https://www.phpcomposer.com/ 阿里云composerhttps://developer.aliyun.com/composer 三,常用命令 list(展示命令列表) help(查看帮助) depends(查看某个包是否依赖其他) install 1.如果composer.lock有对应记录就按照lock文...
2021-02-26 17:34:11 530
原创 数组翻译
php实现数组key和value翻译成中文函数封装 /** * @param array $arr ['name'=>'tom','user_id'=>1,'mobile'=>15912345678] * @param array $map ['name'=>'姓名','user_id'=>'用户id','delete--mobile'] * @param $type 默认0替换key和value,等于1替换key,等于2替换value * *
2021-02-26 16:34:01 315 1
原创 常用 linux grep 命令
1,直接搜索 grep '关键字' grep.txt 2,常用搜索 grep -i 'test' grep.txt 不区分大小写 grep -n 'test' grep.txt 显示行数 grep --color 'test' grep.txt 高亮显示 grep -c 'test' grep.txt 显示符合条件的数量 grep -o 'test' ...
2019-07-14 21:26:45 210
原创 php 无线分类
public static function arrayToTree(array $items) { $tree = []; foreach ($items AS $item) { if (isset($items[$item['fid']])) { $items[$item['fid']]['chi...
2019-01-19 13:55:04 123
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人