Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道调用对象的变量名。
例如:
ClassObj $var = new ClassObj();
$var是否可以从 ClassObj 中的构造函数中获取变量名?
$var