PHP code example of liwenyu / php-helpers
1. Go to this page and download the library: Download liwenyu/php-helpers 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/ */
liwenyu / php-helpers example snippets
//Load Composer's autoloader
$content = '我爱你中国,你最棒';
$result = \liwenyu\phpHelpers\StringDiff::getDiff($template, $content);
print_r($result);
Array
(
[{a}] => 中国
[{b}] => 你最棒
)