mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-15 09:44:14 +02:00
Fix readme
This commit is contained in:
28
README.md
28
README.md
@@ -59,9 +59,9 @@ Tested and compatible with PHP 5.3+ and HHVM. Inspired by underscore.string.js.
|
|||||||
* [titleize](#titleize)
|
* [titleize](#titleize)
|
||||||
* [toAscii](#toascii)
|
* [toAscii](#toascii)
|
||||||
* [toLowerCase](#tolowercase)
|
* [toLowerCase](#tolowercase)
|
||||||
* [toTitleCase](#toTitleCase)
|
|
||||||
* [toSpaces](#tospaces)
|
* [toSpaces](#tospaces)
|
||||||
* [toTabs](#totabs)
|
* [toTabs](#totabs)
|
||||||
|
* [toTitleCase](#totitlecase)
|
||||||
* [toUpperCase](#touppercase)
|
* [toUpperCase](#touppercase)
|
||||||
* [trim](#trim)
|
* [trim](#trim)
|
||||||
* [truncate](#truncate)
|
* [truncate](#truncate)
|
||||||
@@ -853,19 +853,6 @@ S::create('FÒÔ BÀŘ', 'UTF-8')->toLowerCase();
|
|||||||
S::toLowerCase('FÒÔ BÀŘ', 'UTF-8'); // 'fòô bàř'
|
S::toLowerCase('FÒÔ BÀŘ', 'UTF-8'); // 'fòô bàř'
|
||||||
```
|
```
|
||||||
|
|
||||||
#### toTitleCase
|
|
||||||
|
|
||||||
$stringy->toTitleCase()
|
|
||||||
|
|
||||||
S::toTitleCase(string $str [, string $encoding ])
|
|
||||||
|
|
||||||
Converts the first character of each word in the string to uppercase.
|
|
||||||
|
|
||||||
```php
|
|
||||||
S::create('fòô bàř', 'UTF-8')->toTitleCase();
|
|
||||||
S::toTitleCase('fòô bàř', 'UTF-8'); // 'Fòô Bàř'
|
|
||||||
```
|
|
||||||
|
|
||||||
#### toSpaces
|
#### toSpaces
|
||||||
|
|
||||||
$stringy->toSpaces([ tabLength = 4 ])
|
$stringy->toSpaces([ tabLength = 4 ])
|
||||||
@@ -895,6 +882,19 @@ S::create(' fòô bàř')->toTabs();
|
|||||||
S::toTabs(' fòô bàř'); // ' fòô bàř'
|
S::toTabs(' fòô bàř'); // ' fòô bàř'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### toTitleCase
|
||||||
|
|
||||||
|
$stringy->toTitleCase()
|
||||||
|
|
||||||
|
S::toTitleCase(string $str [, string $encoding ])
|
||||||
|
|
||||||
|
Converts the first character of each word in the string to uppercase.
|
||||||
|
|
||||||
|
```php
|
||||||
|
S::create('fòô bàř', 'UTF-8')->toTitleCase();
|
||||||
|
S::toTitleCase('fòô bàř', 'UTF-8'); // 'Fòô Bàř'
|
||||||
|
```
|
||||||
|
|
||||||
#### toUpperCase
|
#### toUpperCase
|
||||||
|
|
||||||
$stringy->toUpperCase()
|
$stringy->toUpperCase()
|
||||||
|
Reference in New Issue
Block a user