| 1 |
# __set |
| 2 |
|
| 3 |
```php |
| 4 |
__set ( string $name, mixed $value ) |
| 5 |
``` |
| 6 |
|
| 7 |
| Parameter | Description |
| 8 |
| --------- | ----------- |
| 9 |
| `name` | `outertext`, `innertext` or attribute name. |
| 10 |
| `value` | Value to set. |
| 11 |
|
| 12 |
See [](http://php.net/manual/en/language.oop5.overloading.php#object.getmagic methods](http://php.net/manual/en/language.oop5.overloading.php#object.get](http://php.net/manual/en/language.oop5.overloading.php#object.get) |
| 13 |
|
| 14 |
Sets the outer text of the current node to `$value` if `$name` is `outertext`. |
| 15 |
|
| 16 |
Sets the inner text of the current node to `$value` if `$name` is `innertext`. |
| 17 |
|
| 18 |
Otherwise, adds or updates an attribute with name `$name` and value `$value` to the current node. |