Created
March 28, 2013 13:59
-
-
Save czterystaczwarty/5263328 to your computer and use it in GitHub Desktop.
return first not null
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fst_not_null ($param_1. $param_2, ...) { | |
// get array of params | |
// or array | |
return current(array_filter(array($param_1, $param_2, ...))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment