PHP code example of ludovicm67 / strings
1. Go to this page and download the library: Download ludovicm67/strings 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/ */
ludovicm67 / strings example snippets
// import here the composer autoloader
dovicm67\Strings\Strings;
echo Strings::clean("test& ""~ "@éa/-âå€ÊÂøÊ±æ€ûýþ<b>bold</b>");
// will display: test& ""~ "@éa/-âå€ÊÂøÊ±æ€ûýþ<b>bold</b>
echo Strings::fromCamelCase('testFromCamelCase');
// will display: test-from-camel-case
echo Strings::toCamelCase('test-to-camel-case');
// will display: testToCamelCase