A function is a set of PHP statements that accept one or more parameters and return a value.
Functions offer the ability to group together program code that performs a specific task into a single unit that can be used repeatedly throughout a program.
Functions come in two forms: those built into the language and those you define yourself.