Contents

WebsiteParser::__destruct()

The class destructor.

Description

Explicitly clears Parser object from memory upon destruction.

Source

File: bp-activity/vendors/website-parser/website_parser.php

    public function __destruct()
    {
        //It's not allowed to re-assign $this, so why it should be allowed to unset() it. The following code worked in PHP 7, but will emit compilation error in PHP 7.1
        //unset($this);
    }

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.