Name: Anonymous 2013-03-15 19:07
class html {
private static $content;
public static function a($p) {
self::$content &= $p."\n";
}
public static function an($p) {
if($a->admin) {
self::$content &= $p."\n";
}
}
public static function write() {
return self::$content;
}
}
html::a("test");
echo html::write();
0
Why it does not work?
private static $content;
public static function a($p) {
self::$content &= $p."\n";
}
public static function an($p) {
if($a->admin) {
self::$content &= $p."\n";
}
}
public static function write() {
return self::$content;
}
}
html::a("test");
echo html::write();
0
Why it does not work?