/ Published in: PHP
Simple class to retrieve an ID using a URL of the Youtube
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /* Simple Class capture ID Youtube Leandro Peres - 04/01/0212 */ class Youtube { private $url; function PegaID ($url = null) { echo $this->url; } } $Youtube = new Youtube(); $ID = $Youtube->PegaID("http://www.youtube.com/watch?v=RmeXANd7c8I"); ?>