jamesbrooks/php-clamp
最新稳定版本:v0.1.0
Composer 安装命令:
composer require jamesbrooks/php-clamp
包简介
Clamp one number between a min and max.
README 文档
README
Clamp one number between a min and max.
Usage
// $number = clamp($value, $min, $max); clamp(10, 1, 100); // => 10 clamp(10, 1, 5); // 5 clamp(-10, 1, 5); // 1
License
PHP Clamp is licensed under The MIT License (MIT).
统计信息
- 总下载量: 772
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-21