我有以下代码: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