I would like to have for each a href the href value and add it to an array.
This is my code so far:
$str = "<a href='google.com'>ga naar google</a> <a href='nu.nl'>of ga naar nu.nl</a>";
preg_match_all('/\<a href="{1}([^">]*)\">{1}/', $str, $array);
print_r($array[1]);
I tried to do it with preg_match_all and add the values to an array called 'array'. I tried multiple times but didn't get the values that i wanted.