我有以下代碼:str_replace與隨機值?
$embed_url = str_replace('<iframe width="512" height="288" frameborder="0" scrolling="no" src="', '', $embed_url);
$embed_url = str_replace('"></iframe>', '', $embed_url);
會發生什麼事是iframe的寬度和高度是不固定的值,因此它們可以是任何其他數字。
我怎樣才能使此作品的任何寬度/高度?
謝謝。
編輯:我想要得到的是src值。
Tha是完美的。泰! – PGZ