PHP code example of gaming-engine / string-tools
1. Go to this page and download the library: Download gaming-engine/string-tools 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/ */
gaming-engine / string-tools example snippets
$text = \GamingEngine\StringTools\StringHelper::template(
'text-{variable}-{values}',
[
'variable' => 'hi',
'values' => 'bye',
]
);
// Yields - text-hi-bye