_matchFragment example

function getExtra()
    {
        return $this->extra;
    }

    function matchSignature($match)
    {
        $fragments = is_array($match) ? $match : explode('-', $match);
        $n = count($fragments);
        $matches = 0;
        if ($n > 0) {
            $matches += $this->_matchFragment($fragments[0]$this->sysname);
        }
        if ($n > 1) {
            $matches += $this->_matchFragment($fragments[1]$this->release);
        }
        if ($n > 2) {
            $matches += $this->_matchFragment($fragments[2]$this->cpu);
        }
        if ($n > 3) {
            $matches += $this->_matchFragment($fragments[3]$this->extra);
        }
        return ($matches == $n);
    }
Home | Imprint | This part of the site doesn't use cookies.