CakeFest 2024: The Official CakePHP Conference

xml_get_current_byte_index

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

xml_get_current_byte_indexRestituisce l'indice del byte corrente per un parser XML

Descrizione

xml_get_current_byte_index(resource $parser): int

Restituisce l'indice del byte corrente per il parser XML fornito.

Elenco dei parametri

parser

Un riferimento al parser XML per ottenere l'indice del byte da esso.

Valori restituiti

Questa funzione restituisce false se parser non si riferisce ad un parser valido, o altrimenti viene restituito l'indice del byte sul quale è correntemente il parser nel suo buffer di dati (a partire da 0).

Note

Avviso

Questa funzione restituisce l'indice del byte nella codifica testuale UTF-8 senza tener conto se l'input è in un'altra codifica.

Vedere anche:

add a note

User Contributed Notes 1 note

up
1
turan dot yuksel at tcmb dot gov dot tr
18 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.
To Top