I have a list of divs like that:
<div align=center><object><embed src='http://www.GamesForWork.com/games/swf/Rodent Tree Jump january 4th 2007.swf' quality='autohigh' wmode='direct' width='640' height='400' name='gameObj' align='middle' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/go/getflashplayer'/></object><br><font face=verdana size=1><a href='http://www.gamesforwork.com/' target='_blank'>10 daily games at gamesforwork.com</a></font></div>
I am talking about more than 800 divs like that. I want to extract the links of the swf files, for example in the code in the top I want to extract this link:
http://www.GamesForWork.com/games/swf/Rodent Tree Jump january 4th 2007.swf
So.. I try to use strstr and strpos, but with not success
if (strpos($result, "<embed src='") !== false) {
strstr($result, "<embed src='");
}
Its not remove the embed or give me what the string have in the continue. Sorry for my bad English.
10 daily games at gamesforwork.com you want this output ? – Senior PHP Developer Aug 02 '18 at 05:50