diff --git a/README.md b/README.md index 113ede3..8f9b9b1 100644 --- a/README.md +++ b/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()