Get Youtube video id from a Youtube Url
/** * @param String $url * @returns Youtube Id if found or false if not */ function getYoutubeId($url = null){ parse_str(parse_url( $url, PHP_URL_QUERY ), $vars ); return isset($vars['v']) ? $vars['v'] : false; }