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