In this article, you will learn about the function keyword in PHP. The function keyword is used to create a function.
examples of the function
Example 1. In this example, we create a function and run it.
<?php
function hello($a) {
return "Hello $a!";
}
echo hello("World");
?>