Posted By

dan_hoerr on 01/14/11


Tagged

url php video id YouTube


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

supermauerbros
qubestream


getting video ID attribute from youTube url with php


 / Published in: PHP
 

URL: http://www.scottklarr.com/topic/415/how-to-grab-thumbnails-for-youtube-and-google-video/

taken from comments at above URL

  1. parse_str(parse_url($embedurl,PHP_URL_QUERY), $out);
  2. print_r($out);
  3. echo $out['v']; // return ID of video

Report this snippet  

You need to login to post a comment.