Minimal entry-point that boots Composer's autoloader.
Language: PHP
Start a session, store a value, and read it on the next request.
rawurlencode is RFC 3986; urlencode uses the older application/x-www-form-urlencoded.
Hand-roll CLI parsing using \$argv when getopt is overkill.
Fire-and-forget mail via the built-in mail() — fine for low-volume.
Connect to MySQL with PDO and run a prepared SELECT.
Walk a tree with RecursiveDirectoryIterator + RecursiveIteratorIterator.
Sort with usort and a spaceship-operator comparator.
Use preg_match with named groups to parse structured text.
Use password_hash and password_verify — never store plaintext.