Associate
I've used this code I found on Stack Overflow, but how would I actually echo the contents of the title tag?
I'm a PHP newbie, thanks for any help.
PHP:
function get_title($html) {
return preg_match('!<title>(.*?)</title>!i', $html, $matches) ? $matches[1] : '';
}
I'm a PHP newbie, thanks for any help.