XMLWriter::startAttributeNs
PHP function
Edit on GitHub ✎
(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0)
Create start namespaced attribute
Description
Oop
XMLWriter::startAttributeNs(string|null $prefix, string $name, string|null $namespace): bool
Procedural
xmlwriter_start_attribute_ns(XMLWriter $writer, string|null $prefix, string $name, string|null $namespace): bool
Starts a namespaced attribute.
Parameters
prefixThe namespace prefix.
nameThe attribute name.
namespaceThe namespace URI. If
namespaceis null, the namespace declaration will be omitted.
Return Values
Success
Changelog
| Version | Description |
|---|---|
| 8.0.0 | prefix is nullable now. |
See Also
XMLWriter::startAttributeXMLWriter::endAttributeXMLWriter::writeAttributeXMLWriter::writeAttributeNs