grayphp/helpers
最新稳定版本:v0.3
Composer 安装命令:
composer require grayphp/helpers
包简介
core php helper functions.
关键字:
README 文档
README
Installation
Install helper-functions with composer
composer require grayphp/helpers
Helpers
array_get:/** * Gets a value in an array by dot notation for the keys. * * @param string $key * @param array $array * * @return mixed */ array_set:/** * Sets a value in an array using the dot notation. * * @param string $key * @param mixed $value * @param array $array * * @return bool */ array_first:/** * Returns the first element of an array. * * @param array $array * * @return mixed $value */ array_last:/** * Returns the last element of an array. * * @param array $array * * @return mixed $value */ to_array:/** * Converts a string or an object to an array. * * @param string|object $var * * @return array|null */ to_object:/** * Converts an array to an object. * * @param array $array * * @return object|null */ is_assoc:/** * Detects if the given value is an associative array. * * @param array $array * * @return bool */ create_captcha:/** * Create a captcha image. * @return void */ validate_captcha:/** * Validate a captcha image. * @param string $userInput * @return bool */
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-15