Instantly share code, notes, and snippets.

Embed
What would you like to do?
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