0
如何通过多个iframe标记从字符串获取第一个iframe?字符串只包含一个或多个iframe标签。 例如:如何从字符串中获得第一个iframe iframe iframe
$string =
'<iframe width="560" height="315" src="http://www.youtube.com/embed/" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="http://www.youtube.com/embed/?" frameborder="0" allowfullscreen></iframe>';
简单,效果很好,谢谢 – Lukas 2014-09-22 10:01:33