class my{public static function say(){echo 'hello';}$o='my';$o::say();//这样可以调用 就是可变类名吧?‘my’::say();//这样为什么就报错了呢? 上面变量里面也不是保存‘my’这个字符串吗? 为什么上面的行下面的不行了呢? 同样的值哦}
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn