-
function myFunction($company) {
function is the PHP command to create a function.
myFunction is the name of the user function.
The variable $company is passed into the user function inside of the parentheses ( ).
-
{
Marks the beginning of the user function.
-
print("<p>Welcome to $company</p>");
This is what the user function does. It prints the text "Welcome to Acme Auto!" to the browser window. This is because the variable $company is given the value of "Acme Auto."
-
}
Marks the end of the user function.