best way to inspect variable value in Yii (beginner)

Dear you,

I am beginner of Yii and even PHP. Right now, I just use "echo" to print value on the screen. It works for me, but I believe there is better way.

I saw somebody else screen when they are using some plugin to dump all the variable value to Firebug and to the screen during the debug(and it looks fancy!).

If this tool(or method) does exist, where can I find more info about it?

Thank you!

Hello,

you can use php var_dump function or even better it’s yii equivalent CVarDumper. firebug extension you are referring to is called FirePHP I believe.

Thank you very much!!