PHP
-
Why @@ is the best attribute syntax for PHP
August 21, 2020 - 5 minute read
The Attributes v2 RFC (accepted on May 4, 2020) added support for native attributes in PHP 8 using the
<<Attr>>syntax borrowed from Hacklang. In June, I authored the Shorter Attribute Syntax RFC to propose using@@Attror#[Attr]to address five shortcomings of the original syntax. -
PolyCast: a library for safe type conversion in PHP
October 25, 2015 - 3 minute read
PHP now supports scalar type declarations, but how can user input be safely converted to the correct type?
-
Implementing a linked list in SQL
May 17, 2015 - 3 minute read
Recently I was challenged with enabling users to drag and drop items in a list to sort them in any order, and persisting that order in a SQL database.
-
Responsive Captcha: A small PHP library for preventing spam
December 30, 2012 - 1 minute read
Responsive Captcha is a PHP library which generates simple, random arithmetic and logic questions.
Theodore Brown