Get Youtube Id from URL

$link = $_POST[‘youtubelink’];
$video_id = explode(“?v=”, $link);
$video_id = $video_id[1];

Similar Posts


  1. Very effective. Nice message to keep track of youtube ID. This code would be helps many users i think.

  2. YouTube ids are getting from URL is very popular among the users who reads thinkaboutindia posts.

Leave a Reply

Your email address will not be published. Required fields are marked *