1. Go to this page and download the library: Download kuria/simple-html-parser 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/ */
$parser->getHtml(); // get entire document
$parser->getHtml($element); // get single element
``getSlice()`` - get part of the HTML
=====================================
The ``getSlice()`` method returns a part of the HTML content.
Returns an empty string for negative or out-of-bounds ranges.
.. code:: php
$slice = $parser->getSlice(100, 200)