Page MenuHomePhorge
Diviner Arcanist Tech Docs phutil_nonempty_stringlike

function phutil_nonempty_stringlike($value)
Arcanist Technical Documentation ()

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$valueto test.
Return
boolTrue if the parameter is a nonempty, stringlike value.