<?php$youtube = file_get_contents('URL video');preg_match('/<title>(.*?)<\/title>/is', $youtube, $matches);echo substr($matches[1], 23);?>