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

search for in the

xml_get_current_column_number> <xml_error_string
Last updated: Fri, 14 Aug 2009

view this page in

xml_get_current_byte_index

(PHP 4, PHP 5)

xml_get_current_byte_indexRetourne l'index de l'octet courant d'un analyseur XML

Description

int xml_get_current_byte_index ( resource $parser )

Retourne l'index de l'octet courant de l'analyseur XML donné.

Liste de paramètres

parser

Une référence sur un analyseur XML valide.

Valeurs de retour

xml_get_current_byte_index() retourne FALSE si parser n'est pas valide ou, sinon, retourne l'index de l'octet d'analyse courante de l'analyseur XML (débute à 0).

Notes

Avertissement

Cette fonction retourne l'index de l'octet en accord avec le texte encodé UTF-8 même si l'entrée est dans un autre encodage.

Voir aussi



add a note add a note User Contributed Notes
xml_get_current_byte_index
turan dot yuksel at tcmb dot gov dot tr
20-Sep-2005 10:38
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.

xml_get_current_column_number> <xml_error_string
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites