Functions¶
Functions in PHP. It defines a set of argument, and process a value, which is returned upon completion.
<?php
function foo($a, $b) {
return $a - $b;
}
?>
Related : Recursion, Closure, Arrow Functions, Method, Anonymous Function, First Class Callable, Default Parameter, Dereferencing, Disable Functions, Return, Variable Arguments