PHP code example of bentools / string-combinations
1. Go to this page and download the library: Download bentools/string-combinations 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/ */
bentools / string-combinations example snippets
use function BenTools\StringCombinations\string_combinations;
foreach (string_combinations('abc') as $combination) { // Can also be string_combinations(['a', 'b', 'c'])
echo $combination . PHP_EOL;
}