一些开发的常用函数,方便直接在开发中使用
- 此仓库处于持续构建优化阶段,后续在空闲之余将会继续更新和优化内容
$ composer require ihome/helpers -vvv
<?php
// 获取10位随机字符串
$string = getRandString(10);
var_dump($string);
// 浮点数判断大小
$result = bcCompNumber(1.1, '<', 2.2);
var_dump($result);// true
?>
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
MIT