I´m not a very got programer when it comes to regular expressions, so I could not figure out a way to do this.
I need a script that opens a HTML file and grabs the image names and puts them into an array, so I can have it for futher use.
Any sugestions???
Every image tag must start with <img src="
for ($i=10,$c=0; $i<strlen($string); $i++) if (substr($string, $i-10, $i)=='<img src="') { while (ord(++$i)!=34) $img_array[$c].=string[$i]; $c++; }
echo 'Yeah, baby!';