difference betwenn VarDumper and var_dump()

Hi guys,in past I used to read out arrays like this:


var_dump($array);

In yii, I’m also able coding like this:


yii\helpers\VarDumper::dump($array);

Both output are approximately the same So, why is this class implemented in yii framework?

See here in the api VarDumper

Additionally, VarDumper could be used to output highlighted HTML response: http://www.yiiframework.com/doc-2.0/yii-helpers-basevardumper.html#dump()-detail

I of course already have read informations of this link. Nevertheless,I can’t understand why to use Vardumper instead var_dump. There is no considerable difference. However, this thread can be closed. I will use var_dump/print_r,'cause it’s easier to handle…