PHP的关键字

来源:互联网 发布:软件测试技术 图片 编辑:程序博客网 时间:2024/06/04 21:55

PHP中关键字通常分为四种类型:

  1. 用于数据类型定义的关键字,如:int ,string,bool,classic,object和array等。
  2. 用于流程控制结构的关键字,如:if,else,elseif,switch,do,while,break和continue等。
  3. 用于设置存储类型的关键字,如:static、global等。
  4. 其他类型的关键字。

关键字:

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 

0 0