function coalesce(...)libphutil Technical Documentation (Core Utilities)
function coalesce(...)
libphutil Technical Documentation (Core Utilities)
Returns the first argument which is not strictly null, or null if there are no such arguments. Identical to the MySQL function of the same name.
Parameters
... | Zero or more arguments of any type. |
Return
mixed | First non-`null` arg, or null if no such arg exists. |
- Defined
- src/utils/utils.php:730