Skip to content

Instantly share code, notes, and snippets.

@m5lil
Created March 7, 2017 21:27
Show Gist options
  • Save m5lil/d75c4e6b3b305a53ca361d5390891255 to your computer and use it in GitHub Desktop.
Save m5lil/d75c4e6b3b305a53ca361d5390891255 to your computer and use it in GitHub Desktop.
parse yt id
            $url = Input::get('video');
            $var_v = parse_url( $url, PHP_URL_QUERY );

            if ($var_v) {
              parse_str( $var_v, $q );
              $model->video = $q['v'];
            }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment