Arquivos
hhvm/hphp/test/quick/string-cse.php
T
Tim Starling 998951619f update copyright date
We did not intend to imply our copyrights last forever

Closes #759
2013-06-03 12:43:56 -07:00

25 linhas
452 B
PHP

<?php
// Copyright 2004-2013 Facebook. All Rights Reserved.
class c {
private static $thing;
private static $otherthing;
public static function doit($id, $value) {
self::$thing[(string)$id] = $value;
self::$otherthing[(string)$id] = $value;
}
public static function dump() {
var_dump(self::$thing, self::$otherthing);
}
}
function main() {
c::doit(0, 'hello');
c::dump();
}
echo "Calling main\n";
main();
echo "Done\n";