Php implicitly changes types as needed Variables names are case sensitive $name = 'John' echo $Name; // Undefined variable: Name
Local variables must be initialized before use Variables are passed by value, not reference class int b; // default 0 method String a = "a"
Assign multiple variables in one line The * operator performs repetitions on strings a, b, c = [1, 2, 3] assert a == 1 assert b == 2
Variable declaration, let keyword Old var, visible through blocks var a = 1 // global let b = 2