Skip to content

Instantly share code, notes, and snippets.

@samuelsimoes
Created July 14, 2012 19:12
Show Gist options
  • Save samuelsimoes/3112811 to your computer and use it in GitHub Desktop.
Save samuelsimoes/3112811 to your computer and use it in GitHub Desktop.
Pegar o ID do Vídeo com PHP a partir da URL do Vídeo.
<?php
parse_str(parse_url($url_video_youtube, PHP_URL_QUERY), $parms_url_youtube);
$id_video_youtube = ($parms_url_youtube['v']) ? $parms_url_youtube['v'] : false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment