url.php
protected function chompCoordinates(&$url)
    {
        if (preg_match('/(.*)\?(\d+),(\d+)$/', $url, $matches)) {
            $url = $matches[1];

            return array((integer) $matches[2], (integer) $matches[3]);
        }

        return array(false, false);
    }
protected function chompCoordinates(&$url)
    {
        if (preg_match('/(.*)\?(\d+),(\d+)$/', $url, $matches)) {
            $url = $matches[1];

            return array((integer) $matches[2], (integer) $matches[3]);
        }

        return array(false, false);
    }
Extracts the X, Y coordinate pair from an image map.

@param string $url   URL so far. The coordinates will be removed.

@return array        X, Y as a pair of integers.