function phutil_nonempty_stringlike($value)libphutil Technical Documentation (Core Utilities)
function phutil_nonempty_stringlike($value)
libphutil Technical Documentation (Core Utilities)
Test if a value is a nonempty, stringlike value.
The value "null", the empty string, and objects which have a "__toString()" method which returns the empty string are empty.
Other strings, and objects with a "__toString()" method that returns a string other than the empty string are considered nonempty.
This method raises an exception if passed any other value.
Parameters
Value | $value | to test. |
Return
bool | True if the parameter is a nonempty, stringlike value. |
- Defined
- src/utils/utils.php:2145