Articles

PHP

The language everyone said was dying, still quietly paying the bills - working notes on the parts of PHP that keep coming back around.

Everything in PHP

  • Title card: PHP 8.5 pipe operator (|>): when it beats nested calls

    09/27/2026

    PHP 8.5 pipe operator (|>): when it beats nested calls

    PHP 8.5's |> pipe operator passes a value through a chain of single-argument callables. Examples, where it beats nesting, and the errors it throws.

  • Diagram: three passing requirements for a PHP redirect, an absolute URL, an exit after it and no prior output, above a failing example under a headers-already-sent error.

    03/15/2014

    Redirect a webpage with PHP

    Three lines, and three ways to get it wrong: output before the header, no exit after it, and a 301 the browser then caches forever. Which status you choose matters more than the code does.