首页 > 解决方案 > 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?

标签: php

解决方案


它是范围解析运算符。从文档

范围解析运算符(也称为 Paamayim Nekudotayim)或更简单的术语是双冒号,是允许访问类的静态、常量和重写属性或方法的标记。


推荐阅读