Extract link attributes from string of HTML

Krisuuu

New Member
What's the best way to extract HTML out of $var?example of $var\[code\]$var = "<a href="http://stackoverflow.com/">Stack Overflow</a>"\[/code\]I want \[code\]$var2 = "http://stackoverflow.com/"\[/code\]example: preg_match();what else?
 
Back
Top