PHP关键字列表

这些词语在 PHP 中有着特殊的意义。不能使用它们的任何一个作为常量、方法名或是类名。但是可以将它们作为变量名使用,不过这样会导致混淆。全部关键字列表如下:

and、or、xor、 __FILE__、exception、__LINE__、array()、 as、 break、case、class、const、continue、declare、default、die()、do、echo、else、elseif、empty()、enddeclare、endfor、endforeach、endif、endswitch、endwhile、eval()、exit()、extends、for、foreach、function、global、if、include、include_once、isset()、list()、new、print、require、 require_once、return、static、switch、unset()、use、var、while、__FUNCTION__、__CLASS__、__METHOD__、final、php_user_filter、interface、implements、extends、public、private、 protected、 abstract、 clone、 try、 catch、throw、 cfunction、this。

results matching ""

    No results matching ""