Unit 01 of 03
Language and Execution
Every request running in a process built from scratch, code and text separated by tags, the conversion rules of variables and types, operators behaving according to type, forms of control flow, and what function signatures enforce.
Published Updated
Lessons
- 01 The PHP Execution Model Measuring which of the silent, return, warning and halts channels a problem is heard through in PHP; execution starting and ending per request, and an uncaught error cutting only that execution. 2 min read
- 02 Syntax and Tags A file with a syntax error never starts running, how that differs from an error thrown during execution, and how code and template mix through tags in a PHP file. 5 min read
- 03 Variables and Data Types How the type of a value in PHP can change without a signal: assignment, the integer limit, floating-point numbers, casts, the undefined variable, and how type declarations behave under strict types mode. 2 min read
- 04 Operators What PHP operators say when they bring two types together: arithmetic with numeric strings, loose and strict equality, concatenation and precedence, division by zero, and the null coalescing operator silencing a warning. 2 min read
- 05 Control Flow How unmatched branches behave in PHP: the difference between switch and match, loose and strict comparison, the lifetime of loop variables, the foreach and reference trap, and a default arm in match turning a halt into silence. 2 min read
- 06 Functions Argument and return behavior in PHP functions: silent swallowing of extra arguments, errors for missing and unknown arguments, default values and static, passing by value and by reference, return types, and making the surplus visible with ...$x. 2 min read