I just wanna get return class properties in not instantiated class use. There is no way to instance this class? Please tell me...! My example is below↓↓
<?php class MyTest { public static $test1 = 'a'; public static $test2 = 'b'; public static function getProperties() { //how to code here...? } } //plz return $test1, $test2 MyTest::getProperties();
https://stackoverflow.com/questions/66020595/getting-properites-of-static-class-in-static-function February 03, 2021 at 10:56AM
没有评论:
发表评论