function simple_html_dom::__get in simplehtmldom API 6
Same name and namespace in other branches
- 5.2 simplehtmldom/simple_html_dom.php \simple_html_dom::__get()
- 7 simplehtmldom/simple_html_dom.php \simple_html_dom::__get()
File
- simplehtmldom/
simple_html_dom.php, line 957
Class
Code
function __get($name) {
switch ($name) {
case 'outertext':
return $this->root
->innertext();
case 'innertext':
return $this->root
->innertext();
case 'plaintext':
return $this->root
->text();
}
}