xml_get_current_byte_index
(PHP 4, PHP 5)
xml_get_current_byte_index — 获取 XML 解析器的当前字节索引
<h3>说明</h3>
 int <strong>xml_get_current_byte_index</strong>
  ( resource <code>$parser</code>
 )
<p>
 获取指定的 XML 解析器的当前字节索引(current byte index)。
</p>
<h3>参数</h3>
<p>parser
指向要取得字节索引的 XML 解析器的引用。
</p>
<h3>返回值</h3>
<p>如果 parser 没有指向一个合法的解析器,该函数将返回
FALSE,否则将返回解析器当前在其数据缓冲区中的字节索引(起始值为 0)。
注释
Warning
该函数将返回根据UTF-8编码的文本的字节索引,而不论输入是否是其他的编码。
<h3>参见</h3>
<p>
  <strong>xml_get_current_column_index()</strong>
  <strong>xml_get_current_line_index()</strong>
</p>