Created
June 6, 2016 15:41
-
-
Save deshack/cde292bc1355b587705d336ba7781e9e to your computer and use it in GitHub Desktop.
PHP5 Return Types
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 getUser() { | |
return array(); | |
} | |
var_dump(getUser()); | |
// array(0) { | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment