I'm having a bit of a brain meltdown trying to figure this out. If anyone has a suggestion I could try, that would be excellent.
I'm trying to extract specific pieces of data from an html source file. In particular image tag information.
If my file contains lines similar to:
<a href="images/picture.jpg" target="_blank"><img src="thumbnails/picture.jpg"></a>
I'd like to be able to extract the a href URL and the img src as two seperate variables and ignore any other HTML source and tags inside of the file.
For all intents and purposes ending up with an array of the following:
$link[0]="images/picture.jpg";
$thumbnail[0]="thumbnails/picture.jpg";
Thanks everyone. 🙂