Last active
August 11, 2017 21:53
-
-
Save mhull/38b44162419466f0d9c188837be25eb4 to your computer and use it in GitHub Desktop.
Exploring function and set notation
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
<script> | |
/** | |
* An example function in JavaScript | |
* | |
* @param int myInt | |
* @param string myString | |
* | |
* @return string | |
*/ | |
function myFunction( myInt, myString ) { | |
// do stuff here... | |
// when done... | |
return myResult; | |
} | |
</script> |
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 | |
/** | |
* An example function in PHP | |
* | |
* @param int $my_param | |
* @param string $my_other_param | |
* | |
* @return string | |
*/ | |
function my_function( $my_param, $my_other_param ) { | |
// do stuff here... | |
// when done... | |
return $my_result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment