A
A
akula222017-10-24 14:15:44
Yii
akula22, 2017-10-24 14:15:44

Is there a VarDump for the console?

There is a very convenient class varDamper

public static function dump($var, $depth=10, $highlight=true){
        echo self::dumpAsString($var, $depth, $highlight);
    }

which displays everything beautifully on the web
. Is there something similar for the console?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question