Dutch PHP Conference 2025 - Call For Papers

XMLWriter::writeAttributeNs

xmlwriter_write_attribute_ns

(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0)

XMLWriter::writeAttributeNs -- xmlwriter_write_attribute_nsWrite full namespaced attribute

Опис

Об'єктно-орієнтований стиль

public XMLWriter::writeAttributeNs(
    ?string $prefix,
    string $name,
    ?string $namespace,
    string $value
): bool

Процедурний стиль

xmlwriter_write_attribute_ns(
    XMLWriter $writer,
    ?string $prefix,
    string $name,
    ?string $namespace,
    string $value
): bool

Writes a full namespaced attribute.

Параметри

writer

Тільки для процедурних викликів. Примірник XMLWriter, що буде оброблятися. Цей об'єкт повертається функцією xmlwriter_open_uri() або xmlwriter_open_memory().

prefix

The namespace prefix. If prefix is null, the namespace will be omitted.

name

The attribute name.

namespace

The namespace URI. If namespace is null, the namespace declaration will be omitted.

value

The attribute value.

Значення, що повертаються

Повертає true у разі успіху або false в разі помилки.

Журнал змін

Версія Опис
8.0.0 Тепер writer має бути примірником XMLWriter. Раніше очікувався resource.

Прогляньте також

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top