Home > PHP > Function > XMLWriter > XMLWriter::writeAttribute()

XMLWriter::writeAttribute()

XMLWriter::writeAttribute - Write full attribute

Syntax

bool XMLWriter::writeAttribute (string $name, string $value, resource $xmlwriter, string $name, string $value, string $name, string $value, resource $xmlwriter, string $name, string $value)

Arguments

  • name - 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().
  • value - The name of the attribute.
  • xmlwriter - The value of the attribute.
  • name
  • value
  • name - 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().
  • value - The name of the attribute.
  • xmlwriter - The value of the attribute.
  • name
  • value

Description

Object oriented style

Version

PHP 5.1.2, PECL xmlwriter >= 0.1.0

Return value

Returns TRUE on success or FALSE on failure.