This is a collection of nonsensical stuff in different programming languages. It's updated when I find something noteworthy. You can however send submissions to hugo@lysator.liu.se.
$a = "1d9"; echo $a; echo ++$a; echo ++$a;
=> 1d9 => 1e0 => 2
Unary ++ works differently from binary +
++
+
$a = "1a;" echo $a + 1; echo ++$a;
=> 2 => 1b
[98, 99, 100].sort();
[100, 98, 99]
[,,] == ","
true