Last active
July 28, 2016 05:42
-
-
Save infn8/0d3275b7f951baa897a3c9abe2c74e55 to your computer and use it in GitHub Desktop.
Cascade Values
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
<?php | |
function cascade_values(){ | |
for ($i = 0; $i < func_num_args(); $i++) { | |
$val = func_get_arg($i); | |
if(!empty($val)){ | |
return $val; | |
} | |
} | |
return false; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment