This is string increment class that can be used extensively for uppercase or lowercase letters as well as for various hexadecimal characters.
Use Composer to install the library. Of course, You can go to Packagist to view.
$ composer require yakeing/str_increment
str_increment init / Set up
$str = '0fff';
$ret = StrIncrement::NewStr($str, 16);
var_dump('1000' == $ret);
//string
$str = '1999';
$ret = StrIncrement::NewStr($str, 10);
var_dump('2000' == $ret);
//integer
$int = 100;
$ret = StrIncrement::NewStr($int, 10);
var_dump('101' == $ret);
$str = 'ABzZ';
$ret = StrIncrement::NewStr($str, 'letters');
var_dump('ABAa' == $ret);
$str = 'zxc';
$ret = StrIncrement::NewStr($str, 'lowercase');
var_dump('zxd' == $ret);
$str = 'ABZ';
$ret = StrIncrement::NewStr($str, 'uppercase');
var_dump('ACA' == $ret);
- URL
https://github.com/fTg5A
https://github.com/0EaG7
- USER ID
USER | UID |
---|---|
John | F8aJ0e |
Kim | fWd0fJ |
Mary | F8qWc5 |
If you've got value from any of the content which I have created, then I would very much appreciate your support by payment donate.
weibo: yakeing
twitter: yakeing