I need to extract the link value which is stored in a <a href>
tag by using php code.
<a href="http://stackoverflow.com/questions/ask"></a>
From the above code i want to extract the link http://stackoverflow.com/questions/ask
using php code.
I need to extract the link value which is stored in a <a href>
tag by using php code.
<a href="http://stackoverflow.com/questions/ask"></a>
From the above code i want to extract the link http://stackoverflow.com/questions/ask
using php code.
You can't do that unless the link is generated by your PHP code itself. PHP is server side code whereas the link is on the page itself is in HTML client code. The two can't communicate with each other. To extract the value you would need to use a client side script like JavaScript.