zoukankan      html  css  js  c++  java
  • php 关键字

    1、关键字
    class                     定义类                    class Student{}
    extends                继承                    class B extends A{}
    pubilc                   公共的                 public $p1=1;
    protected             受保护的               protected functiong show(){}
    private                 私有的                     private $sex="male";
    final                     终极的                            final class A(){} ;final funciton f1(){}
    abstract               抽象的                            abstract class A{};abstract function f1(){}
    interface              接口                            interface I1{//必须实现T1中所有的方法}
    self         当前类                           self::$静态属性;self::静态方法()
    static        静态变量,静态成员,当前类    static $v1=1;static $p1=1;static function f1(){}
    $this        代表当前对象            
    override       重写
    serialize()       序列化函数

  • 相关阅读:
    git
    composer
    laravel saas
    算法模板-01背包
    GMP-C/C++(大数库)使用方法
    算法模板-容斥原理
    算法模板-欧拉函数
    算法模板-素数判断/素数筛法
    算法模板-质因数分解
    算法模板-快速幂取模
  • 原文地址:https://www.cnblogs.com/hmetoer2017/p/6293996.html
Copyright © 2011-2022 走看看