I’ve been working with Yii framework version 2.0 for a few days now, and I find Yii’s Debugger and vardumper function are extremely uncomfortable!
Since for the sake of Simplicity and Quick Development, I’ve created a helper for those who use Yii. You can just call dd($var1, $var2, ….); for dump & die or d($var1, $var2, ….); for dump data.
p/s: Please scroll to the end of this article for sample result.
p/s 2: Those functions work with all PHP version
and then add this line of code to the top: