mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-09 06:46:40 +02:00
Update titleize description in readme
This commit is contained in:
@@ -800,8 +800,8 @@ s('“I see…”')->tidy(); // '"I see..."'
|
|||||||
##### titleize([, array $ignore])
|
##### titleize([, array $ignore])
|
||||||
|
|
||||||
Returns a trimmed string with the first letter of each word capitalized.
|
Returns a trimmed string with the first letter of each word capitalized.
|
||||||
Ignores the case of other letters, preserving any acronyms. Also accepts
|
Also accepts an array, $ignore, allowing you to list words not to be
|
||||||
an array, $ignore, allowing you to list words not to be capitalized.
|
capitalized.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$ignore = ['at', 'by', 'for', 'in', 'of', 'on', 'out', 'to', 'the'];
|
$ignore = ['at', 'by', 'for', 'in', 'of', 'on', 'out', 'to', 'the'];
|
||||||
|
Reference in New Issue
Block a user