Skip to content

Instantly share code, notes, and snippets.

@mhull
Last active August 11, 2017 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhull/38b44162419466f0d9c188837be25eb4 to your computer and use it in GitHub Desktop.
Save mhull/38b44162419466f0d9c188837be25eb4 to your computer and use it in GitHub Desktop.
Exploring function and set notation
<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>
<?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