Hello everyone, I have the following string:
'<a href="http://localhost/mensageiro/1990/">1990</a> (1)
<a href="http://localhost/mensageiro/1994/">1994</a> (2)
<a href="http://localhost/mensageiro/1995/">1995</a> (4)'
How to transform this string into an array: [1990 => 1, 1694 => 2 , 1995 => 4]
PS: You do not need to post the whole code. A light how to do it will help me a lot.