Académique Documents
Professionnel Documents
Culture Documents
Jill Gundersen
Overview
What is a function?
Creating/Calling a function
Passing/Default parameters
Returning Values
Variable Functions
Variable Scope
What is a Function?
Block of code
Performs a specific task
Used throughout your program
General Syntax of a Function
function createName($parameter, $anotherParameter)
{
// perform some function here
}
Summary Functions
Defined a function
Creating/Calling a function
Passing/Default parameters
Returning values
Variable functions
Variable scope