drboboev / sortwords
Sorting words in string
dev-master
2018-11-29 12:54 UTC
Requires
- php: >=7.1.0
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-09-16 02:05:23 UTC
README
SORTING WORDS
Requirements:
- PHP 7.1 or higher
Installation:
composer require drboboev/sortwords
Usage:
Add class to your code:
use drboboev\SortWords\SortWords;
Create object:
$sortWords = new SortWords();
Run function sort() with $str as argument:
$string = $sortWords->sort($str);
sort() function returns string with sorted words.