function simple_html_dom::__construct in simplehtmldom API 5.2
Same name and namespace in other branches
- 6 simplehtmldom/simple_html_dom.php \simple_html_dom::__construct()
- 7 simplehtmldom/simple_html_dom.php \simple_html_dom::__construct()
File
- simplehtmldom/
simple_html_dom.php, line 512
Class
Code
function __construct($str = null) {
if ($str) {
if (preg_match("/^http:\\/\\//i", $str) || is_file($str)) {
$this
->load_file($str);
}
else {
$this
->load($str);
}
}
}