$link = 'http://www.google.com';
$nodelist = $xPath->query( '//a[@href="'.$link.'"]/@href');
Is there a way to match $link with and without a trailing slash without having to use additional php for it?
$nodelist = $xPath->query( '//a[@href="'.$link.'"]/@href');
Is there a way to match $link with and without a trailing slash without having to use additional php for it?