My latest articles
PHP in a nutshell: Functions and closures
Part five of the PHP course. Function declarations and types, named and variadic arguments, no implicit outer scope, static variables, closures with use, arrow functions, callables and the f(...) syntax.
PHP in a nutshell: Operators and control flow
Part four of the PHP course. A tour of operators, the and/or precedence trap, string increments, loops and the classic foreach-by-reference bug, switch versus match, and include versus require.
PHP in a nutshell: Arrays
Part three of the PHP course. The array as an ordered hash map, key rules, unpacking and destructuring, a tour of the array_* functions, sorting, and the difference between array_merge and the + operator.