• 分类模块的增删改查

    通过本章的学习,实现了分类模块的增删改查,代码如下:模型:Sort.php<?php namespace app\admin\controller; use app\a...

    165

  • CURD,增删改查练习

    <?phpnamespace app\index\controller;use think\db;class Query{      //   写操作返回...

    210

  • 依赖注入的实现

    <?php //依赖注入 class Girl {     public function shop()  &nb...

    140

  • 单例模式的实现

    <?php //单例模式 class Test { } $test1 = new Test(); $test2 = new ...

    163

  • php字符串操作总结

    ①substr(string, start,[length]);截取字符串;去掉字符串中的最后一个字符   substr($str,0,strlen($str)-1); ...

    239

Release Notes

Popular this month