public function contains($url)
    {
        $url = trim($url, '/');

        foreach ($this->entries as $entry) {
            if ($entry['loc'] == $url) {
                return true;
            }
        }

        return false;
    }
public function contains($url)
    {
        $url = trim($url, '/');

        foreach ($this->entries as $entry) {
            if ($entry['loc'] == $url) {
                return true;
            }
        }

        return false;
    }
public function contains ( $ url ) { $ url = trim ( $ url , '/' ) ; foreach ( $ this -> entries as $ entry ) { if ( $ entry [ 'loc' ] == $ url ) { return true ; } } return false ; }
Check if the sitemap contains an url.

@param string $url

@return boolean
Check if the sitemap contains an url .