1. Go to this page and download the library: Download colbygatte/el 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/ */
// Create a new Element.
el($data)
// At index 0, iterate over it's child elements and tag them with <th>,
// then move from the index 0 back to the top level.
->at(0)->each('th')->top()
// Grab a slice from index 1 to the end of the array,
// then iterate one level deep, tagging each found element with <td>
// then move back to the top level.
->slice(1)->depth(1)->each('td')->top()
// Now back at the top level, tag each element with tr.
->each('tr')
// Tag the entire top level with table.
->tag('table')
// Convert to a string.
// Implements __toString(), so this can be type casted to string or
// echoed without calling str().
->str();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.