PHPHtmlParser\StaticDom::loadFromUrl PHP Method

loadFromUrl() public static method

Creates a new dom object and calls loadFromUrl() on the new object.
public static loadFromUrl ( string $url, array $options = [], phphtmlparser\CurlInterface $curl = null )
$url string
$options array
$curl phphtmlparser\CurlInterface
    public static function loadFromUrl($url, $options = [], CurlInterface $curl = null)
    {
        $dom = new Dom();
        self::$dom = $dom;
        if (is_null($curl)) {
            // use the default curl interface
            $curl = new Curl();
        }
        return $dom->loadFromUrl($url, $options, $curl);
    }