Hi all.
Just wondering how I can use PHP to grab urls and the titles out of HTML source code.
For example, here is some HTML source from my page, very simple just to try some of this out on:
<center>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<img src='fb.gif' alt='Fatboy - The original lardarse'><br>
<h4><a href="http://www.mako4css.com/Tutorial.htm">CSS</a> | <a href="bomber.mov">VW Bomber ad</a></h4>
</center>
I want the code to look through the source and present (either display to screen or to write to a file) in the following way:
Link name : Link ref
So for the above example, it would show:
I have had a look at preg match but couldn't fathom it out!
Many thanks for your time!
Ry
//edit: ok, just found preg_match_all so will look at that as well 😃