PHP code example of code-atlantic / chophper
1. Go to this page and download the library: Download code-atlantic/chophper 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/ */
code-atlantic / chophper example snippets
// Full is built to fully support HTML5 without breaking the HTML structure.
use Chophper\Full as Chophper;
$chophper = new Chophper();
$options [
// ... see options below.
];
$chophper->truncate($html, $length, $options);