Validate YouTube Video


/ Published in: PHP
Save to your folder(s)

This function validates the URL of a YouTube video. It supports four kinds of URL: ?v=, /v/, #!v=, and the short version (youtu.be).

To validate the ID a request to YouTube is made, this is done using a personal class utilizing cURL.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.