PHP 8.3.4 Released!

xml_get_current_line_number

(PHP 4, PHP 5, PHP 7, PHP 8)

xml_get_current_line_number获取 XML 解析器的当前行号

说明

xml_get_current_line_number(XMLParser $parser): int

获取指定 XML 解析器当前的行号。

参数

parser

一个指向要获取当前行号的 XML 解析器的指针。

返回值

返回解析器当前在其数据缓冲区的行号。

更新日志

版本 说明
8.0.0 parser 现在接受 XMLParser 实例;之前接受有效的 xml resource

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top