/ Published in: PHP
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.
To validate the ID a request to YouTube is made, this is done using a personal class utilizing cURL.