PHP中关键字通常分为四种类型:
关键字:
- 用于数据类型定义的关键字,如:int ,string,bool,classic,object和array等。
- 用于流程控制结构的关键字,如:if,else,elseif,switch,do,while,break和continue等。
- 用于设置存储类型的关键字,如:static、global等。
- 其他类型的关键字。
and $argc $argv as break case cfunction class continue declare
default die do E_ALL echo E_ERROE else elseif empty enddeclare
endfor endforeach endif endswitch E_PAESE eval E-WARNING exit extends FALSE
for foreach function $HTTP_COOKIE_VARS $HTTP_ENV_VARS $HTTP_GET_VARS $HTTP_POST_FILES
$HTTP_POST_VARS $HTTP_SERVER_VARS if include include_once global list new not NULL
old_function or parent PHP_OS $PHP_SELF PHP_VERSION print require require_once return
static stdClass switch $this TRUE var rivtual while xor _FILE_ LINE _sleep
_wakeup $_COOKIE $_ENV $_FILES $_GET $_POST $SERVER