Example
Create a function and run it:
html
<?php
function hello($a) {
return "Hello $a!";
}
echo hello("World");
?>
Definition and Usage
The function keyword is used to create a function.
Create a function and run it:
Create a function and run it:
<?php
function hello($a) {
return "Hello $a!";
}
echo hello("World");
?>
The function keyword is used to create a function.