| php-manual.net |
|
| Home | PHP Manual auf Deutsch | PHP Manual in English | PHP manuel le sur le français | Impressum |
DOMElement->setAttribute()(No version information available, might be only in CVS) DOMElement->setAttribute() — Adds new attribute BeschreibungDOMElement
bool setAttribute
( string $name
, string $value
)
Sets an attribute with name name to the given value. If the attribute does not exist, it will be created. Parameter Liste
RückgabewerteGibt bei Erfolg TRUE zurück, im Fehlerfall FALSE. Fehler/Exceptions
Beispiele
Example#1 Setting an attribute
<?php |