Blogger Information
雪~人胖胖
Blog
26
fans
0
comment
0
visits
18139
integral:0
P beans:52
  • List of blog posts
  • 文件上传与常用函数

    文件上传1. 文件上传配置 文件上传项目项在php.ini中设置,常用的配置项有: 序号 配置项 默认值 描述 1 file_uploads On 使 PHP 支持文件上传 2 upload_tmp_dir /tmp 指示应该临时...

    2020-05-15 13:05 Read 965 comment 0
  • COOKIE与SESSION实现用户登录、注册、验证

    1.cookie与session发送cookie setcookie ( string $name [, string $value = "" [, int $expire = 0 [, string $path = ""设置setcookie('u...

    2020-05-14 17:27 Read 1521 comment 0
  • MySql操作数据库的CURD

    连接数据库连接参数 namespace mysql_edu;return[ 'host'=>$host ?? 'localhost', 'dbname'=>$dbname ?? 'phpedu', 'charset'=>$chars...

    2020-05-13 00:33 Read 530 comment 0
  • PDO操作数据库的CURD

    1.数据库的连接1.1连接参数 namespace pdo_edu;return [ //1.数据库类型 'type'=>$type ?? 'mysql', //2.数据库默认主机 'host'=>$host ?? 'loca...

    2020-05-13 00:33 Read 695 comment 0
  • 命名空间与类文件的自动加载

    1.命名空间namespace user1{ class Demo1 { const NAME = '这是user1下的Demo1'; }}namespace user2{ class Demo1{ ...

    2020-05-11 03:51 Read 854 comment 0
  • __sleep()、__wakeup() 魔术方法与异常处理

    1. __sleep()与__wakeup()//__sleep():当序列化的时候自动调用//__wakeup():当反序列化的时候自动调用class Product{ public $name; private $price,$sum...

    2020-05-11 01:11 Read 873 comment 0
  • 后期静态绑定与拦截器

    后期静态绑定abstract class A{//当实现类中2个函数功能相同时,可以写在抽象类中//抽象类不能实例化//将类的定义与类的调用分离开//用后期静态绑定,使用关键字static将self替换//self 始终与定义它的类绑定//stati...

    2020-05-07 00:55 Read 621 comment 0
  • Trait组合

    Trait组合的同名方法的命名冲突的解决方案trait tBase1{ protected static $name; public function display() { return __TRAIT__; ...

    2020-05-05 16:17 Read 753 comment 0
  • 接口与trait的基础

    接口//多接口继承interface iComputer1{ public function version();}interface iComputer2{ const str1 = '运行win7';}interface iCompu...

    2020-05-01 18:05 Read 701 comment 0
  • 类的继承,抽象类以及接口的基本语法

    类的继承//父类class User{ //public:公开成员 类的继承上下文环境中 //protected:受保护的成员,类外部禁止访问,类的内部以及它的继承上下文中可以访问 //private:私有成员,只能在当前类访问 ...

    2020-04-30 15:32 Read 947 comment 0
  • 文件加载以及类的创建和访问

    文件加载 文件加载: 可简单的理解为将外部文件内容复制到当前文档中根据被加载文件的特征和重要性,可分为: “条件加载” 和 “强制加载” 二种方式 1. 条件加载加载外部文件,如果失败报警告级(Warning)错误,不会中断程序 序号 语法 描...

    2020-04-29 16:17 Read 596 comment 0
  • 常用数组函数

    1.常用数组函数

    2020-04-29 01:48 Read 696 comment 0
  • 字符串函数

    字符串函数[toc] 1. 字符串语法 字符串上限: 2G字符串中每个字符使用一个字节表示,仅支持 256 个,不支持Unicode 有四种方式创建字符串 序号 方式 描述 1 单引号 全部内容视为纯文本 2 双引号 可解析变量和...

    2020-04-25 19:43 Read 910 comment 0
  • php中的函数

    1. 函数语法函数是实现代码复用的重要方式,在所有编程语言中均如此 function 函数名称(类型: 参数列表): 返回值类型{ // 函数体 return 返回值;} 序号 名称 描述 1 function 声明函数 ...

    2020-04-22 18:52 Read 619 comment 0
  • 运算符与流程

    运算符1. 算术运算符 序号 运算符 示例 描述 1 + $a+$b $a与$b 的和 2 - $a-$b $a与$b 的差 3 * $a*$b $a与$b 的积 4 / $a/$b $a与$b 的商 5 % $a%$b ...

    2020-04-19 00:36 Read 434 comment 0
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!