PHP code example of siteorigin / string-splitter
1. Go to this page and download the library: Download siteorigin/string-splitter 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/ */
siteorigin / string-splitter example snippets
$splitter = new SiteOrigin\StringSplitter\StringSplitter('expertsexchange');
var_dump($splitter->split()); // ['experts', 'exchange']