mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-11 15:54:04 +02:00
Added isHexadecimal to Readme
This commit is contained in:
14
README.md
14
README.md
@@ -23,6 +23,7 @@ A PHP library with a variety of string manipulation functions with multibyte sup
|
||||
* [isAlpha](#isalpha)
|
||||
* [isAlphanumeric](#isalphanumeric)
|
||||
* [isBlank](#isblank)
|
||||
* [isHexadecimal](#ishexadecimal)
|
||||
* [isLowerCase](#islowercase)
|
||||
* [isUpperCase](#isuppercase)
|
||||
* [last](#last)
|
||||
@@ -337,6 +338,19 @@ S::create("\n\t \v\f")->isBlank();
|
||||
S::isBlank("\n\t \v\f"); // true
|
||||
```
|
||||
|
||||
#### isHexadecimal
|
||||
|
||||
$stringy->isHexadecimal()
|
||||
|
||||
S::isHexadecimal(string $str [, string $encoding ])
|
||||
|
||||
Returns true if the string contains only hexadecimal chars, false otherwise.
|
||||
|
||||
```php
|
||||
S::create('A102F')->isHexadecimal();
|
||||
S::isHexadecimal('A102F'); // true
|
||||
```
|
||||
|
||||
#### isLowerCase
|
||||
|
||||
$stringy->isLowerCase()
|
||||
|
Reference in New Issue
Block a user