Guided Notes

Data Types & Strings

PHP's data types, type checking and casting, and the most useful string functions.

Data types

Slide 1 / 5
TypeExample
string"hello"
int42, -7
float3.14, 2.5e3
booltrue, false
array[1, 2, 3], ['a' => 1]
objectnew DateTime()
nullnull — no value
← Variables & Output