Guided Notes
Data Types & Strings
PHP's data types, type checking and casting, and the most useful string functions.
Data types
Slide 1 / 5| Type | Example |
|---|---|
| string | "hello" |
| int | 42, -7 |
| float | 3.14, 2.5e3 |
| bool | true, false |
| array | [1, 2, 3], ['a' => 1] |
| object | new DateTime() |
| null | null — no value |
