XMLWriter::writeAttribute

(PHP 5 >= 5.1.2, PHP 7, PECL xmlwriter >= 0.1.0)
Write full attribute
bool XMLWriter::writeAttribute ( string $name, string $value )

Object oriented style

Procedural style

bool xmlwriter_write_attribute ( resource $xmlwriter , string $name , string $value )

Writes a full attribute.

Parameters:
xmlwriter

Only for procedural calls. The XMLWriter resource that is being modified. This resource comes from a call to xmlwriter_open_uri() or xmlwriter_open_memory().

name

The name of the attribute.

value

The value of the attribute.

Returns:

Returns TRUE on success or FALSE on failure.

See also:

XMLWriter::writeAttributeNS() -

XMLWriter::startAttribute() -

XMLWriter::startAttributeNS() -

XMLWriter::endAttribute() -

doc_php
2016-02-24 16:15:34
Comments
Leave a Comment

Please login to continue.