class User { private static $name; public static function setName($name1) { self::$name = $name1; } public static function getName() { return self::$name; } }// Class User User::setName('Ivan'); echo User::getName();

class User { private static $name; public static function setName($name1) { self::$name = $name1; } public static function getName() { return self::$name; } }// Class User User::setName('Ivan'); echo User::getName();
Спасибо.