PHP Function Arguments
PHP Function Arguments. A Function is a tool you create to do specific task. Parameter or arguments can pass through a function.The Function will then accept the inputed parameter and process the output.
A Function can choose to return a value , or not returning a value
To create a PHP function. You need to use the word “function ” on before your function name. Your function name first character should be either an Alphabet or start with an Underscore. Your function name are not allowed to start with a number.
To learn more check out here
Check out the Code Below
<?php function myFunction($a,$b){ $c = $a + $b ; return $c; } echo myFunction(3,6); ?>
Check out how to create random Background colour here