PHP关键字是用来定义语法和结构的特殊单词,它们被PHP解释器保留,不能用作变量或函数名称。常见的PHP关键字包括:abstract、and、array、as、break等。

PHP关键字
PHP关键字是用来定义语言语法和结构的特殊单词。它们被PHP解释器保留,不能用作变量、函数或类的名称。
常见的PHP关键字如下:
abstractandarrayasbreakcallablecasecatchclasscloneconstcontinuedeclaredefaultdiedoelseelseifemptyenddeclareendforendforeachendforendwhileextendsfinalfinallyforforeachfunctionglobalgotoifimplementsincludeinclude_onceinstanceofinsteadofinterfaceissetlistnamespaceneworparentprintprivateprotectedpublicrequirerequire_oncereturnstaticswitchthrowtraittryunsetusevarwhilexoryield











