PHP expert |
|
http://www.youtube.com/watch?v=qzBtgvhpkTw , bijvoorbeeld deze url. Je moet die watch?v= veranderen in v/.
$url = "http://www.youtube.com/watch?v=qzBtgvhpkTw";
$url = str_replace('watch?v' , 'v/' , $url);
"youtube" => array("<object style=\"".$width." ".$height."\"><param name=\"movie\" value=\"".$url."\" /><param name=\"wmode\" value=\"transparent\" /><embed src=\"".$url."\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" style=\"".$width." ".$height."\"></embed></object>", "#{youtube}(.*?){/youtube}#s")
$url = "http://www.youtube.com/watch?v=qzBtgvhpkTw"; "youtube" => array("<object style=\"".$width." ".$height."\"><param name=\"movie\" value=\"".$url."\" /><param name=\"wmode\" value=\"transparent\" /><embed src=\"".$url."\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" style=\"".$width." ".$height."\"></embed></object>", "#{youtube}(.*?){/youtube}#s")
|