---
title: __get
---

```php
__get ( string $name ) : mixed
```

See [magic methods](http://php.net/manual/en/language.oop5.overloading.php#object.get)

Supports following names:

| Name              | Description
| ----              | -----------
| `outertext`       | Returns the outer text of the root element.
| `innertext`       | Returns the inner text of the root element.
| `plaintext`       | Returns the plain text of the root element.
| `charset`         | Returns the charset for the document.
| `target_charset`  | Returns the target charset for the document.