PHP code example of frank29259 / thsplitlib

1. Go to this page and download the library: Download frank29259/thsplitlib 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/ */

    

frank29259 / thsplitlib example snippets


    $words = $segment->get_segment_array($text);
    $text = implode("|",$words);

    $mpdf->useDictionaryLBR = false;

    if ($prevchar == '|') {
        $breakfound = [$contentctr, $charctr, $cutcontentctr, $cutcharctr, 'discard'];
    }

    /* -- END OTL -- */
    $currContent = str_replace('|','',$currContent); 

    $currContent = str_replace('|','',$currContent); 
    unset($content);
    unset($contentB);