In this article we want to share a fast and easy way to get a PHP Array of Link Elements found on a webpage.
At Dimbal Software we want to create unique software that is useful and helps small websites and blogs. To that end we created the Free Url Extractor for a given webpage.
The Link Extraction tool is a free online tool to help you generate a list of links found within a designated webpage. Use it to extract a list of links into a JSON variable, PHP array or just to print out for reference.
The tool works by requesting the contents of a given webpage that you specify. The tool then parses that information to understand and build the underlying document tree. Using the document tree we can then parse out all of the include Link Elements and their associated URL’s. We are then able to convert that into a PHP array so that you can use it in your own code.