INDEX ADBRITE
EXTRACT LINK AND NAME FROM HTML USING PHP CODE SNIPPET
Posted by anonymous in PHP CODE SNIPPET on Tuesday, August 31, 2010
some times you may need to extract the name and link from html link.
here is a simple php code snippet to do the job.
it simply extract the link and name and save it into array.
here is the code...
<?php
function extract_linkdata($htmllink){
$data=array();
//array for storing url and name
$var=array();
array_push($var,$htmllink);
//ALGORITHM...