Parse YouTube URLs With PHP
Here’s a nice PHP snippet that some of you might find useful with regards to information on YouTube videos. It’s a code that I came across over at PHPZAG that will parse the various types of YouTube URLs and then returning their embed iframe. <?php function parseYoutubeURL($link, $width=430, $height=230){ $final = ‘<iframe width=”‘.$width.‘” height=”‘.$height.‘” src=”http://www.youtube.com/embed/{code}” [...]