<?php include 'website_parser.php'; //Instance of WebsiteParser $parser = new WebsiteParser('http://morshed-alam.com/'); //Get all hyper links $links = $parser->getHrefLinks(); //Get all image sources $images = $parser->getImageSources(); echo "<pre>"; print_r($links); echo "<br />"; print_r($images); echo "</pre>"; /** * ========================================== * Sample Output * ========================================== Array ( [0] => Array ( [0] => https://github.com/joliss/jquery-ui-rails [1] => jquery-ui-rails ) [1] => Array ( [0] => http://gembundler.com/rails23.html [1] => Click here )