Answers for "get the value of href in string php"

PHP
2

get the value of href in string php

$a = new SimpleXMLElement('<a href="www.something.com">Click here</a>');
echo $a['href']; //it will echo www.something.com
Posted by: Guest on April-08-2022

Code answers related to "get the value of href in string php"

Browse Popular Code Answers by Language