I'm using preg_match_all
method to get the urls from inside the anchor tag on a page. It works but when i'm getting them, before adding them to the array i would like to wrap them with '
(like this 'url'
):
preg_match_all('!<a href="(.*?)">!', $anchors, $urls);
Is there a way to do that? If yes, can you point me towards the right direction and the proper way that this could be done?
Thank you! :D