Quantcast
Channel: Developer Feed - 2010
Viewing all articles
Browse latest Browse all 10

How to get Youtube Video Id from the URL using PHP?

$
0
0

Random Quotes in PHPGiven a YouTube Video URL can you find the VID from the URL?.The following Phip snippet helps you to do the same. The key things to keep in mind that VID which is a unique string for any video is 11 characters in length. Also the VID is represented by a v parameter in the URL.

An example of YouTube view URL can be

http://www.youtube.com/watch?v=Ig6c3P4ODC4

or

http://www.youtube.com/watch?feature=player_embedded&v=Ig6c3P4ODC4

In other words the v parameter can be any where in the URL.

read more


Viewing all articles
Browse latest Browse all 10

Trending Articles