openlss/func-gen
Composer 安装命令:
composer require openlss/func-gen
包简介
Random generation functions
关键字:
README 文档
README
Generation functions: handles, uuid, etc
Usage
$guid = gen_guid(); $handle = gen_handle();
Reference
(string) gen_guid()
Returns a GUID using either the preferred extension or a pure PHP implementation
(string) gen_handle($len=6)
Returns an alphanumeric case senstive handle for use as an ID
- $len Length of the handle
Typically this would be used to generate pseudo-random identifiers with code like this
do { $handle = gen_handle(); } while(handleExists($handle));
统计信息
- 总下载量: 127
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2013-03-22