PHP, Language of Mystery
2009 July 21
PHP seems so arbitrary sometimes.
function test_nine() {
$$"9" = 22;
}
fails to parse.
(which is good, I suppose)
This passes:
function test_nine() {
$n = 9;
$$n = 22;
$this->assertEqual($$n, 22);
}
-Andy Friesen,
of giant-communist-robots.com.