mcaskill/php-is-blank
Composer 安装命令:
composer require mcaskill/php-is-blank
包简介
Determine whether a variable has a non-empty value.
关键字:
README 文档
README
(PHP 5 >= 5.4)
is_blank — Determine whether a variable has a non-empty value.
Description
boolean is_blank( mixed $var )
Alternative to empty() that accepts non-empty values:
- 0 (0 as an integer)
- 0.0 (0 as a float)
- "0" (0 as a string)
Parameters
var— The value to be checked.
Return Values
Returns FALSE if var exists and has a non-empty value. Otherwise returns TRUE.
Installation
With Composer
$ composer require mcaskill/php-is-blank
Without Composer
Why are you not using composer? Download Function.Is-Blank.php from the gist and save the file into your project path somewhere.
统计信息
- 总下载量: 244
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-02-23