(PHP 5 >= 5.1.2, PHP 7, PECL xmlwriter >= 0.1.0)
XMLWriter::writeAttribute -- xmlwriter_write_attribute — Écrit un attribut
Style orienté objet
$name
, string $value
)Style procédural
$xmlwriter
, string $name
, string $value
)Écrit un attribut.
xmlwriterUniquement pour les appels procéduraux. La ressource XMLWriter qui a été modifiée. Cette ressource provient d'un appel à xmlwriter_open_uri() ou xmlwriter_open_memory().
nameLe nom de l'attribut.
valueLa valeur de l'attribut.
Cette fonction retourne TRUE en cas de
succès ou FALSE si une erreur survient.