| 1 |
# __get |
| 2 |
|
| 3 |
```php |
| 4 |
__get ( string $name ) : mixed |
| 5 |
``` |
| 6 |
|
| 7 |
| Parameter | Description |
| 8 |
| --------- | ----------- |
| 9 |
| `name` | `outertext`, `innertext`, `plaintext`, `xmltext` or attribute name. |
| 10 |
|
| 11 |
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) |
| 12 |
|
| 13 |
If the provided name is a valid attribute name, returns the attribute value. Otherwise a value according to the table below. |
| 14 |
|
| 15 |
| Name | Description |
| 16 |
| ---- | ----------- |
| 17 |
| `outertext` | Returns the outer text of the current node. |
| 18 |
| `innertext` | Returns the inner text of the current node. |
| 19 |
| `plaintext` | Returns the plain text of the current node. |
| 20 |
| `xmltext` | Returns the xml representation for the inner text of the current node as a CDATA section. |
| 21 |
|
| 22 |
Returns nothing if the provided name is neither a valid attribute name, nor a valid parameter name. |