I'm not quite sure I'm getting you. Each element of the array has a different reference yes?
$array=array(
'<img src="imgfile.jpg" />',
'<a href="pagefile.php">page</a>');
etc yes? If that is the case, what do you want to do with that information? Do you want to pull out the file names and make another array of file names which corresponds to this orriginal array? Do you want to search through the elements to see if a certain filename is present?
You're going to have to be a little more specific about your requirements. As is all I can say is you're going to need a selection of regular expressions.
Bubble