The first parameter, parser , is a reference to the XML parser calling the handler. The second parameter, name , contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters. The keys of this array are the attribute names, the values are the attribute values.
Attribute names are case-folded on the same criteria as element names.
The first parameter, parser , is a reference to the XML parser calling the handler. The second parameter, name , contains the name of the element for which this handler is called. Inside the constructor, PHP-4.0.5 will die. Basically, put all your xml initialisation code in another function of the class, and keep it out of the constructor. Then from these functions we can call the functions within classes but only after the object has been instantiated.