Created
March 30, 2016 17:19
-
-
Save drgomesp/5dc0bfa846acfffbf50a481d2f230f5f to your computer and use it in GitHub Desktop.
PHP 7 Snippets
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 sum(int $a, int $b) { | |
return $a + $b; | |
} | |
function sum(int $a, int $b): int { | |
return $a + $b; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment