Created
December 5, 2015 20:46
-
-
Save atrakeur/f3f0a556ce4f0a58be77 to your computer and use it in GitHub Desktop.
PHP 7 example of a static typed function
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 multiply(int a, int b) : float { | |
return a * b; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment