How to “echo” a class?

后端 未结 5 932
深忆病人
深忆病人 2021-01-17 13:04

This is probably really easy but I can\'t seem to figure out how to print/echo a class so I can find out some details about it.

I know this doesn\'t work, but this i

5条回答
  •  -上瘾入骨i
    2021-01-17 13:48

    If you just want to print the contents of the class for debugging purposes, use print_r or var_dump.

提交回复
热议问题