php基础
$Ni
这个作者很懒,什么都没留下…
展开
-
gitignore
新添加的.gitignore忽略文件 git rm -r --cached . // 重新添加到本地 git add . // 提交到本地仓库 git commit -m '更新 .gitignore 文件'原创 2019-12-13 10:06:29 · 98 阅读 · 0 评论 -
将数组中的汉字为键的值保留
json_encode($arr,JSON_UNESCAPED_UNICODE); 可能会需要php版本的支持原创 2019-10-31 18:02:44 · 102 阅读 · 0 评论 -
php 二分查找 数组中的值 两种方法
<?php function binary(&$arr,$low,$top,$target){ while($low <= $top){ //由于php取商是有小数的,所以向下取整,不过也可不加,数组也会取整 $mid = floor(($low+$top)/2); if($arr[$mid]==$ta...翻译 2019-05-31 10:03:36 · 228 阅读 · 0 评论