Created
August 31, 2018 12:58
-
-
Save astorm/4c9736a8ddc44c546af8a214b523a899 to your computer and use it in GitHub Desktop.
two-return.php
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 | |
define('nil', NULL); | |
function foo() { | |
return ["This is not go", nil]; | |
} | |
list($value, $err) = foo(); | |
var_dump($value, $err); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment