主页
  • thinkphp5 think\response\json Object 转数组

    $result为json对象数据集可使用getContent()方法输出数组格式:print_r(json_decode($result->getContent(),true));

    0 风轻花落早 阅读 4560 点赞 0 5年前
  • PHP重建数组的键值索引

    sort()array_merge()跟一个空数组合并都可以重建索引数组的键值

    0 寒山转苍翠 阅读 2720 点赞 0 5年前
  • PHP传入特殊字符输出处理

    //前端出入:WkjxO9EYhuKNm6inR8HghuYJeffVZJVCWchM6dovk\/y5YHohyrExniMihFRGm+aLufqZ.//输出的话加号不能输出,使用URLencod....

  • php遍历无限级菜单

    /**     * [getTree遍历菜单]     * @author xiaoliu     * @DateTime 2019-11-24T10:59:20+0800     * @return....

    0 做伱后妈 阅读 2613 点赞 0 6年前
  • PHP中两个$(美元符号)的用法

    $first='hello';$hello='world';echo$first.''.$$first;结果:helloworld$$first就是$hello,因为$first的值是hello这里的....

  • PHP+MYSQL进行emoji表情插入

    Mysql版本必须大于5.5.3,因为5.5.3之后才出了utf8mb4我理解的utf8mb4就是utf8的升级版,Emoji表情是4字节,而utf8最大只能容纳三个字节。开始步骤:备注:这里我用的是....

    0 砚台词 阅读 3206 点赞 0 6年前
  • 微信小程序数组追加值

    使用concatconst imagesv = this.data.imagesv.concat(res.tempFilePaths)        that.setData({imagesv:ima....

    0 醉卧君子膝 阅读 2752 点赞 0 6年前
  • 微信小程序数组追加值

    使用concatconst imagesv = this.data.imagesv.concat(res.tempFilePaths)        that.setData({imagesv:ima....

    0 和海看日出 阅读 4274 点赞 0 6年前
  • php使用hash_hmac生成token

    hash_hmac(PHP5>=5.1.2,PHP7,PECL哈希>=1.1)hash_hmac — 使用HMAC方法生成键控哈希值描述hash_hmac (字符串 $algo ,字符串 $data ....

  • TP5.0闭包传值

    在thinkPHP模型查询中,一般有两种方式:数组方式和闭包方式,相对于数组方式只能定义查询条件,闭包方式可以支持更多的连贯操作,包括排序,数量限制等。在thinkPHP闭包查询中通常使用use进行参....

    0 惜琼花 阅读 3154 点赞 0 6年前