Horje
How to extract URL from a Tag in PHP | PHP Tutorial Code
Here is solution.

index.php
Example: PHP
<?php
$a = new SimpleXMLElement('<a href="www.something.com">Click here</a>');
echo $a['href']; // will echo www.something.com
?>

Output should be:

How to extract URL from a Tag in PHP




Read Full::
PHP XML Code
Category:
PHP Tutorial Code
Sub Category:
PHP XML Code
Uploaded:
1 week ago
Uploaded by:
Admin
Views:
5

Related Articles
How to extract URL from a Tag in PHP

More Articles
How to get URL from a Tag in PHP PHP XML Code

Share on: