drboboev/sortwords

Sorting words in string

Maintainers

Package info

github.com/drboboev/SortWords

pkg:composer/drboboev/sortwords

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2018-11-29 12:54 UTC

This package is auto-updated.

Last update: 2026-03-16 05:16:49 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.