downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

xml_get_current_column_number> <xml_error_string
[edit] Last updated: Sat, 18 May 2013

view this page in

xml_get_current_byte_index

(PHP 4, PHP 5)

xml_get_current_byte_indexObtém o índice do byte atual para um analisador XML

Descrição

int xml_get_current_byte_index ( resource $parser )

Obtém o atual índice do byte de um dado analisador XML.

Parâmetros

parser

Uma referência ao analisador XML para conseguir o índice do byte.

Valor Retornado

Esta função retorna FALSE Se parser não se refere a um analisador válido, senão ele retorna qual o índice do byte o analisador está atualmente em seu registro de dados (buffer data) (começando do 0).

Notas

Aviso

Esta função retorna índice do byte de acordo com o texto UTF-8 codificado desconsiderando se a entrada está em outra codificação.

Veja Também

  • xml_get_current_column_index()
  • xml_get_current_line_index()



add a note add a note User Contributed Notes xml_get_current_byte_index - [1 notes]
up
1
turan dot yuksel at tcmb dot gov dot tr
7 years ago
The outcome of this function is heavily dependent on the parser implementation used. For example, at the point where the start_element_ callback is called, libxml2 parser consumes the entire element name and attributes, however expat does not.

 
show source | credits | sitemap | contact | advertising | mirror sites