function phutil_nonempty_string($value)libphutil Technical Documentation (Core Utilities)
function phutil_nonempty_string($value)
libphutil Technical Documentation (Core Utilities)
Test if a value is a nonempty string.
The value "null" and the empty string are considered empty; all other strings are considered nonempty.
This method raises an exception if passed a value which is neither null nor a string.
Parameters
Value | $value | to test. |
Return
bool | True if the parameter is a nonempty string. |
- Defined
- src/utils/utils.php:2111