Is there a way to get the name of a variable? PHP - Reflection

前端 未结 11 617
旧巷少年郎
旧巷少年郎 2020-12-15 08:50

I know this is not exactly reflection, but kind of. I want to make a debug function that gets a variable and prints a var_dump and the variable name.

Of course, when

11条回答
提交回复
热议问题