Parse error: syntax error, unexpected T_VARIABLE error in Crawler code
<p>I have searched for this answer, but unable to find it.  I am getting the error message, "Parse error: syntax error, unexpected T_VARIABLE" and believe it to be related to the "a" listed on line 30.  Any ideas how to make this code right?</p>

<pre><code>&lt;?php
class Crawler {
    protected $markup = ”;
    public function __construct($uri) {
        $this-&gt;markup = $this-&gt;getMarkup($uri);
    }

    public function getMarkup($uri) {
        return file_get_contents($uri);
    }

    public function get($type) {
        $method = array($this,”_get_”.$type);
        if (method_exists($this,$method[1]))
            return call_user_func($method);
        return false;
    }

    protected function _get_images() {
        if (!empty($this-&gt;markup)){
            preg_match_all("/&lt;img([^&gt;]+)\/&gt;/i", $this-&gt;markup, $images);
            return !empty($images[1]) ? $images[1] : FALSE;
        }
    }

    protected function _get_links() {
        if (!empty($this-&gt;markup)){
            preg_match_all("/&lt;a([^&gt;]+)\&gt;(.*?)\&lt;\/a\&gt;/i", $this-&gt;markup, $links);
            return !empty($links[1]) ? $links[1] : FALSE;
        }
    }
}
a 
$crawl = new Crawler("http://www.facebook.com");
$images = $crawl-&gt;get("images");
$links = $crawl-&gt;get("links");
?&gt;
</code></pre>
