<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>youtube - WP2X</title> <atom:link href="https://wp2x.com/tag/youtube/feed/" rel="self" type="application/rss+xml" /><link>https://wp2x.com</link> <description>We can help your Wordpress faster</description> <lastBuildDate>Tue, 10 Mar 2015 10:50:05 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod> hourly </sy:updatePeriod> <sy:updateFrequency> 1 </sy:updateFrequency> <generator>https://wordpress.org/?v=5.6.16</generator> <item><title>Extract youtube ID from youtube URL in PHP</title><link>https://wp2x.com/extract-youtube-id-from-youtube-url-in-php/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Tue, 10 Mar 2015 10:50:05 +0000</pubDate> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[php programming]]></category> <category><![CDATA[php tips]]></category> <category><![CDATA[wordpress tips]]></category> <category><![CDATA[youtube]]></category> <category><![CDATA[youtube id]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=350</guid><description><![CDATA[<p>Today I will show you a very easy way to Extract youtube ID from youtube URL in PHP. This is very simple task what shouldn&#8217;t take time but we usually do it not official with all of situations. It &#8216;s very simple, you just need to run this wayway function getIDFromYoutubeURL($url){ $video_id = false; if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/&#124;(?:v&#124;e(?:mbed)?)/&#124;.*[?&#38;]v=)&#124;youtu\.be/)([^"&#38;?/ ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/extract-youtube-id-from-youtube-url-in-php/">Extract youtube ID from youtube URL in PHP</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Today I will show you a very easy way to Extract youtube ID from youtube URL in PHP. This is very simple task what shouldn&#8217;t take time but we usually do it not official with all of situations.<span
id="more-350"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2015/03/YouTube-Content-ID.jpeg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-351" src="http://wp2x.com/wp-content/uploads/2015/03/YouTube-Content-ID.jpeg?4b2a2c&amp;4b2a2c" alt="YouTube-Content-ID" width="200" height="212" /></a></p><p>It &#8216;s very simple, you just need to run this wayway</p><pre class="lang:php decode:true">function getIDFromYoutubeURL($url){
        $video_id = false;
        if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&amp;]v=)|youtu\.be/)([^"&amp;?/ ]{11})%i', $url, $match)) {
            $video_id = $match[1];
        }
        return $video_id;
    }</pre><p>Now let &#8216;s use function like this</p><pre class="lang:default decode:true ">$youtubeID = getIDFromYoutubeURL("https://www.youtube.com/watch?v=_URzW7CH8Dg");

// $youtubeID = _URzW7CH8Dg</pre><p>&nbsp;</p><p>The post <a
rel="nofollow" href="https://wp2x.com/extract-youtube-id-from-youtube-url-in-php/">Extract youtube ID from youtube URL in PHP</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> </channel> </rss>