Part III, Chapters 37–47 (pp. 495–586) of Computer Science I.
Chapters
| Ch | Title | Page |
|---|---|---|
| 37 | Basics (PHP tags, libraries, entry point/CLI args, type juggling, string concat) | 497 |
| 38 | Conditionals | 515 |
| 39 | Loops (foreach) | 527 |
| 40 | Functions (pass by reference, optional/default params, function pointers) | 535 |
| 41 | Error Handling & Exceptions (throwing, catching, custom) | 543 |
| 42 | Arrays (associative / key-value / non-contiguous indices, multidimensional) | 547 |
| 43 | Strings (functions, arrays of strings, comparisons, tokenizing) | 557 |
| 44 | File I/O (reading via URLs) | 563 |
| 45 | Objects (data visibility, accessors/mutators, constructors, composition) | 567 |
| 46 | Recursion | 577 |
| 47 | Searching & Sorting (comparator functions) | 581 |
What PHP Exposes
- Dynamic / weak typing and type juggling — contrast to C’s static typing (basics).
- Associative arrays: string keys, non-contiguous & key-value indices — generalizes arrays & collections.
- Web-oriented I/O: reading files via URLs (file I/O).
- PHP tags and CLI entry points — scripting-first structure.
Typical target: broadening CS1 appeal (humanities / non-CE majors).
Citations
[1] Computer Science I, Part III, pp. 495–586.