• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • xml_get_current_column_number()

    (PHP 4, PHP 5, PHP 7)

    获取 XML 解析器的当前列号

    说明

    xml_get_current_column_number(resource $parser): int

    获得指定 XML 解析器当前的列号。

    参数

    $parser

    一个指向要获取列号的 XML 解析器的指针。

    返回值

    如果$parser参数没有指向一个合法的解析器,该函数将返回FALSE,否则将返回指定解析器所在行(由函数xml_get_current_line_number()给定)的当前列号。

    参见

    Column numbers apparently start at 0. So you may want to add 1.
    "Column number" refers to the current character position within the current line of the XML document.