Parse error: syntax error, unexpected T_VARIABLE error in Crawler code
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?

    `<?php
    class Crawler {
    protected $markup = ”;
    public function __construct($uri) {
    $this->markup = $this->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->markup)){
    preg_match_all("/<img([^>]+)\/>/i", $this->markup, $images);
    return !empty($images[1]) ? $images[1] : FALSE;
    }
    }
    protected function _get_links() {
    if (!empty($this->markup)){
    preg_match_all("/<a([^>]+)\>(.*?)\<\/a\>/i", $this->markup, $links);
    return !empty($links[1]) ? $links[1] : FALSE;
    }
    }
    }
    a
    $crawl = new Crawler("http://www.facebook.com");
    $images = $crawl->get("images");
    $links = $crawl->get("links");
    ?>`
Parse error: syntax error, unexpected T_VARIABLE error in Crawler code
===

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?

    `<?php
    class Crawler {
    protected $markup = ”;
    public function __construct($uri) {
    $this->markup = $this->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->markup)){
    preg_match_all("/<img([^>]+)\/>/i", $this->markup, $images);
    return !empty($images[1]) ? $images[1] : FALSE;
    }
    }
    protected function _get_links() {
    if (!empty($this->markup)){
    preg_match_all("/<a([^>]+)\>(.*?)\<\/a\>/i", $this->markup, $links);
    return !empty($links[1]) ? $links[1] : FALSE;
    }
    }
    }
    a
    $crawl = new Crawler("http://www.facebook.com");
    $images = $crawl->get("images");
    $links = $crawl->get("links");
    ?>`