How to extract YouTube ID from Url with PHP

How I can extract the YouTube ID from this URL Example by using PHP?

Example YouTube Url:

Actually this work fine:

But in our Example we have to encode the YouTube url first.

Solution:

Done.

Leave a Reply

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