mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-09-08 20:20:47 +02:00
Document hasLowerCase and hasUpperCase
This commit is contained in:
28
README.md
28
README.md
@@ -26,6 +26,8 @@ PHP 5.3+ and HHVM. Inspired by underscore.string.js.
|
||||
* [ensureRight](#ensureright)
|
||||
* [first](#first)
|
||||
* [getEncoding](#getencoding)
|
||||
* [hasLowerCase](#haslowercase)
|
||||
* [hasUpperCase](#hasuppercase)
|
||||
* [humanize](#humanize)
|
||||
* [insert](#insert)
|
||||
* [isAlpha](#isalpha)
|
||||
@@ -405,6 +407,32 @@ Returns the encoding used by the Stringy object.
|
||||
S::create('fòô bàř', 'UTF-8')->getEncoding(); // 'UTF-8'
|
||||
```
|
||||
|
||||
#### hasLowerCase
|
||||
|
||||
$stringy->hasLowerCase()
|
||||
|
||||
S::hasLowerCase(string $str [, string $encoding ])
|
||||
|
||||
Returns true if the string contains a lower case char, false otherwise.
|
||||
|
||||
```php
|
||||
S::create('fòô bàř', 'UTF-8')->hasLowerCase();
|
||||
S::hasLowerCase('fòô bàř', 'UTF-8'); // true
|
||||
```
|
||||
|
||||
#### hasUpperCase
|
||||
|
||||
$stringy->hasUpperCase()
|
||||
|
||||
S::hasUpperCase(string $str [, string $encoding ])
|
||||
|
||||
Returns true if the string contains an upper case char, false otherwise.
|
||||
|
||||
```php
|
||||
S::create('fòô bàř', 'UTF-8')->hasUpperCase();
|
||||
S::hasUpperCase('fòô bàř', 'UTF-8'); // false
|
||||
```
|
||||
|
||||
#### humanize
|
||||
|
||||
$stringy->humanize()
|
||||
|
Reference in New Issue
Block a user