Blogger Information
OC的PHP大牛之路
Blog
34
fans
0
comment
0
visits
20224
integral:0
P beans:68
  • List of blog posts
  • 单文件和多文件上传

    文件上传

    2022-08-22 18:21 Read 465 comment 0
  • 常用 的CURD操作

    pdo: 预处理1. 匿名参数 + 索引数组namespace pdo_edu;use PDO;$db = new PDO('mysql:dbname=phpedu', 'root', 'root');// 匿名参数: ?$sql = 'INSERT...

    2022-08-22 17:59 Read 574 comment 0
  • 类的自动加载器

    spl_autoload_register(function ($class) { require $class.'.php';}); require 'autoloader.php';use admin\controller\Demo1;us...

    2022-08-17 16:30 Read 372 comment 0
  • 类的扩展、抽象及接口和命名空间

    类的扩展、抽象及接口protected 可继承成员extends 类成员的来源parent父类引用 class Person{ // 1. 属性 // public: 公共成员, 当前类, 类外部 // public string ...

    2022-08-17 16:03 Read 597 comment 0
  • 文件包含介绍及类成员

    文件包含将外部文件的内容插入当前位置; include与require // 1.include// 代码出错后忽略错误,继续执行后面代码;相对路径:include 'inc/f1.php';绝对路径:include __DIR__ . '/inc/...

    2022-08-15 16:58 Read 484 comment 0
  • PHP数组函数

    PHP数组函数队列// 队列// 1.尾部追加(array_push()),头部删除(array_shift())$arr = [];echo array_push($arr,5,6,7);echo array_push($arr,8);echo a...

    2022-08-12 14:03 Read 420 comment 0
  • PHP作用域及字符串函数

    PHP作用域支持函数作用域,不支持块作用域! 函数中引用外部变量的5种方法1. global2. $GLOBALS['outer']3. function () use ($outer) {...}4. fn()=>(...)5. function ...

    2022-08-11 15:06 Read 547 comment 0
  • 流程控制之分支与循环及模板语法

    流程控制:分支//流程控制:分支$age = 17;//单分支if ($age >= 18) { echo '可以上网';} //双分支if ($age >= 18) { echo '可以上网';} else { //默认分支 ...

    2022-08-10 17:07 Read 361 comment 0
  • php运行原理图

    php运行原理图

    2022-08-10 14:55 Read 592 comment 0