Imdb\Title::extReviews PHP Method

extReviews() public method

Get list of external reviews (if any)
See also: IMDB page /externalreviews
public extReviews ( ) : array
return array [0..n] of array [url, desc] (or empty array if no data)
    public function extReviews()
    {
        if (empty($this->extreviews)) {
            $page = $this->getPage("ExtReviews");
            if (empty($page)) {
                return array();
            }
            // no such page
            if (preg_match_all('@<li><a href="(.*?)".*?>(.*?)</a>@', $this->page["ExtReviews"], $matches)) {
                $mc = count($matches[0]);
                for ($i = 0; $i < $mc; ++$i) {
                    $this->extreviews[$i] = array("url" => $matches[1][$i], "desc" => $matches[2][$i]);
                }
            }
        }
        return $this->extreviews;
    }