Get URL anchor text

Get the URL anchor text from a link

<?php
/**
 * Extract anchor text
 *
 * @param unknown_type $url
 * @return unknown
 */
function getUrlLinkText($url) {

   
preg_match('/\>(.*)<\/a>/', $url, $matches);

    return
$matches[1];
}
?>
Knowledge keywords: