(PHP 5 >= 5.1.2, PHP 7, PECL xmlwriter >= 0.1.0)
XMLWriter::writeAttributeNs -- xmlwriter_write_attribute_ns — Write full namespaced attribute
Stil obiect-orientat
$prefix
, string $name
, string|null $namespace
, string $value
) : boolStil procedural
$writer
, string|null $prefix
, string $name
, string|null $namespace
, string $value
) : boolWrites a full namespaced attribute.
xmlwriter
Numai pentru apelurile procedurale. Resursa XMLWriter care este modificată. Această resursă se obține în urma apelării xmlwriter_open_uri() sau xmlwriter_open_memory ().
prefix
The namespace prefix.
If prefix is null, the namespace will be omitted.
nameThe attribute name.
namespace
The namespace URI.
If namespace is null, the namespace declaration will be
omitted.
valueThe attribute value.
Întoarce valoarea true în cazul
succesului sau false în cazul eșecului.
| Versiune | Descriere |
|---|---|
| 8.0.0 |
writer expects an XMLWriter
instance now; previously, a resource was expected.
|