$url = Input::get('video');
$var_v = parse_url( $url, PHP_URL_QUERY );
if ($var_v) {
parse_str( $var_v, $q );
$model->video = $q['v'];
}
Created
March 7, 2017 21:27
-
-
Save m5lil/d75c4e6b3b305a53ca361d5390891255 to your computer and use it in GitHub Desktop.
parse yt id
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment