first() Return the first not null parameter. first() $nullObj = null; $nullArray = null; $string = ''; $first($nullObj, $nullArray, $string); // ''