dev-master
9999999-devPHP class for formatting and editing text
MIT
The Requires
- php >=5.4.0
- yiisoft/yii2 *
by Rim
extension yii2 widget text title change upper rim formated lower
PHP class for formatting and editing text
UA: PHP класс для форматування та редагування тексту, (*1)
EN: PHP class for formatting and editing text, (*2)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require --prefer-dist irim/text "*"
or add, (*5)
"irim/text": "*"
to the require section of your composer.json
file., (*6)
```php $text = "how use THIS fkn script"; $script = new Text('cp1251'); // change encoding, default UTF-8 $load = $script->text($text) // Uppercase first letter echo $load->ucFirst()->end(); //OR echo Text::ucFirstLetter($text); // RESULT: How use THIS fkn script // to Title echo $load->toTitle()->end(); // RESULT: How Use This Fkn Script // to Upper echo $load->toUpper()->end(); // RESULT: HOW USE THIS FKN SCRIPT // to Lower echo $load->toUpper()->end(); // RESULT: how use this fkn script // the letter "s" to the uppercase echo $load->change('s',Text::toUpper)->end(); // RESULT: how uSe THIS fkn Script //OR // the letter "S" to the lowercase echo $load->change('S',Text::toLower)->end(); // RESULT: how use THIs fkn script ?>, (*7)
PHP class for formatting and editing text
MIT
extension yii2 widget text title change upper rim formated lower