php - What is the name of "::" in PHP?
问题描述
What we call two semicolon symbol '::' in php used for accessing static properties and methods in PHP along with class name like Cars::$wheels; or Car::car_details();. Does it have a name?
解决方案
它是范围解析运算符。从文档
范围解析运算符(也称为 Paamayim Nekudotayim)或更简单的术语是双冒号,是允许访问类的静态、常量和重写属性或方法的标记。
推荐阅读
- reactjs - eslint@typescript-eslint/no-unsafe-return 在使用内联 require() 语句时抛出错误消息
- javascript - 从左到右移动img,停止5秒改变img然后继续用旧的img agin vanilla js向右移动
- c# - 如何修复未指定 loadImage 回调以加载带有 id 错误的图像
- java - 在我的情况下如何避免代码重复?
- doxygen - Doxygen 中的自动编号图像和交叉引用
- windows - 在 Windows 终端中将别名设置为 Anaconda 提示符
- c - 这些设备连接名称是什么?
- c++ - OpenGL中的顶点缓冲区抽象
- angular - 当孩子中没有项目时,角度隐藏父div
- reactjs - 如何在 Box 模型中创建带有样式组件的切换器?