<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.basic.other.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'book.tokenizer.php',
    1 => 'Tokenizer',
    2 => 'Tokenizer',
  ),
  'up' => 
  array (
    0 => 'refs.basic.other.php',
    1 => '其它基本扩展',
  ),
  'prev' => 
  array (
    0 => 'function.tidy-warning-count.php',
    1 => 'tidy_warning_count',
  ),
  'next' => 
  array (
    0 => 'tokenizer.setup.php',
    1 => '安装/配置',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/tokenizer/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.tokenizer.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.tokenizer" class="book">
 
 <h1 class="title">Tokenizer</h1>
 

 <div id="intro.tokenizer" class="preface">
  <h1 class="title">简介</h1>
  <p class="para">
   tokenizer 函数为嵌入在 Zend 引擎中的 PHP tokenizer 提供了接口。使用这些函数，可以编写自己的 PHP 源代码分析或修改工具，而无需在词法级别处理语言规范。
  </p>
  <p class="para">
   参阅<a href="tokens.php" class="link">记号附录</a>。
  </p>
 </div>

 







 








 










 





 








<ul class="chunklist chunklist_book"><li><a href="tokenizer.setup.php">安装/配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="tokenizer.installation.php">安装</a></li></ul></li><li><a href="tokenizer.constants.php">预定义常量</a></li><li><a href="tokenizer.examples.php">示例</a></li><li><a href="class.phptoken.php">PhpToken</a> — The PhpToken class<ul class="chunklist chunklist_book chunklist_children"><li><a href="phptoken.construct.php">PhpToken::__construct</a> — Returns a new PhpToken object</li><li><a href="phptoken.gettokenname.php">PhpToken::getTokenName</a> — Returns the name of the token.</li><li><a href="phptoken.is.php">PhpToken::is</a> — Tells whether the token is of given kind.</li><li><a href="phptoken.isignorable.php">PhpToken::isIgnorable</a> — Tells whether the token would be ignored by the PHP parser.</li><li><a href="phptoken.tostring.php">PhpToken::__toString</a> — Returns the textual content of the token.</li><li><a href="phptoken.tokenize.php">PhpToken::tokenize</a> — Splits given source into PHP tokens, represented by PhpToken objects.</li></ul></li><li><a href="ref.tokenizer.php">Tokenizer 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.token-get-all.php">token_get_all</a> — 将提供的源码按 PHP 标记进行分割</li><li><a href="function.token-name.php">token_name</a> — 获取提供的 PHP 解析器代号的符号名称</li></ul></li></ul></div><?php manual_footer($setup); ?>