Page MenuHomePhorge

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
mixedFirst non-`null` arg, or null if no such arg exists.