Skip to content

Instantly share code, notes, and snippets.

@annelyse
Last active June 22, 2021 12:20
Show Gist options
  • Save annelyse/f8af49bc8c085860f62261e1e92c39af to your computer and use it in GitHub Desktop.
Save annelyse/f8af49bc8c085860f62261e1e92c39af to your computer and use it in GitHub Desktop.
<?php
$url = 'url';
parse_str( parse_url( $url, PHP_URL_QUERY ), $my_array_of_vars );
$videoId= $my_array_of_vars['v'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment