The obvious reading of finally is “runs after the try block finishes”. The useful reading is stronger: it runs on the way out no matter how you leave,…
Two days lost to PHP extension mismatches. A container per service, what the shared-folder performance problem costs on a VM, and whether it was worth it.
A fatal error is not an exception and cannot be caught. In 5.6 that includes calling a method on null and exhausting memory_limit — the request dies, the…
get_posts() is a thin wrapper over WP_Query, so they are usually described as interchangeable. They are not: get_posts() defaults suppress_filters to true, which disables every posts_* filter for…
Both operators mean “this version or a bit newer” and they differ in where the ceiling sits. The difference only shows up when a dependency releases a minor…
Walking every day between two dates is usually a while loop with a manual increment and an off-by-one at one end. DatePeriod is an iterator over a start,…
The two families are constantly swapped because both “clean up a string”. Sanitising decides what is allowed to be stored; escaping decides how it is rendered safely in…