Download the code that accompanies this book: Download code
Section: A B C D

Basic Programming Instructions

Introduction Chapter 1 Chapter 2 Chapter 3 Chapter 4
Chapter 3


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)