Functions
are packages of code that can be used to execute a sequence of instructions. Any valid code can be used inside a function, including calls to other functions and classes.
In PHP, function
names are case insensitive and can be referenced before they are defined, unless they are defined in a conditional code block. Functions can be built-in, provided by an extension, or user-defined. Functions are distinct from language constructs.
Arguments
Arguments to a function, also known as parameters, allow you to pass values into the function scope. Arguments are passed as a comma-separated ...