2010-06-08 215 views

回答

1

地發現:
"<object(.*)youtube.com/v/(.*)\"(.*)</object>"

要轉換爲鏈接:
replace("<object(.*)youtube.com/v/(.*)\"(.*)</object>", '<a href="http://www.youtube.com/watch?v=\\2">click here</a>', $str)

source