PHP code example of sachinsinghshekhawat / simple-html-parser-php

1. Go to this page and download the library: Download sachinsinghshekhawat/simple-html-parser-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sachinsinghshekhawat / simple-html-parser-php example snippets


	$dom = HTMLParser::str_get_html("<html><head></head><body></body></html>");



	use sachinsinghshekhawat\SimpleHTMLDomParserPHP\HTMLParser;
	h($dom->find('img') as $element) 
	   echo $element->src . '<br>';