Created
June 6, 2016 15:44
-
-
Save deshack/3f6022e3b107e6f2356f73fbdf377069 to your computer and use it in GitHub Desktop.
PHP7 dynamic return type
This file contains hidden or 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 maybeGetUser() { | |
return []; | |
} | |
var_dump(maybeGetUser()); | |
// array(0) { | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment