|
XMLWriter::writeAttributexmlwriter_write_attributeWrite full attribute DescriptionObject-oriented style
public bool XMLWriter::writeAttribute(string
$name , string $value )Procedural style bool xmlwriter_write_attribute(XMLWriter
$writer , string $name , string $value )Writes a full attribute. Parameters
Return Values
Returns Changelog
ExamplesExample #1 Intermixing Sub-elements and Attributes If writing sub-elements and attributes is intermixed, any attempt to write attributes after the first sub-element will fail and return false.
The above example will output: bool(false) <element attr1="0"><subelem>0</subelem></element> See Also
|