PHP & MySQL

Chapter 3: Functions

PageTitleFilename
109Basic Functions
113Functions with Return Values
116Functions with Parameters
119Global and Local Scope in Functions
121Global and Static Variables in Functions
123Functions with Multiple Values
125Type Declarations
127Strict Types
129Multiple Return Statements
131Default Values for Parameters
133Named Arguments (PHP 8 only)
140Example