$video_id = substr($url['path'], 1); } elseif (strcasecmp($url['host'], 'www.youtube.com') === 0) { if (isset($url['query'])) { parse_str($url['query'], $url['query']); if (isset($url['query']['v'])) { #### (dontcare)://www.youtube.com/(dontcare)?v=