Create a function named myFunction that takes parameters: $start and $end. code example
Example 1: how to define function in php
<?php
function writeMsg() {
echo "Hello world!";
}
writeMsg(); //call the function
?>
Example 2: execute function php
function functionName() {
//code to be executed;
}
functionName();