xml_get_current_column_number()

It returns current column number for an XML parser

Example

<?php

$xmlparser = xml_parser_create();

$fp = fopen(‘test.xml’, ‘r’);

while ($xmldata = fread($fp, 4096)){

 if (!xml_parse($xmlparser,$xmldata,feof($fp)))

echo xml_get_current_column_number($xmlparser);

}

xml_parser_free($xmlparser);

?>