/ Published in: PHP

Youtube ID simple extractor
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function youtubeid($url) { $match = $match[1]; } return $match; } //Usage $video_id = youtubeid("http://www.youtube.com/watch?v=Fv2aS8YtpmU"); echo $video_id; ?>
Comments
