PHP pretty dump function
After using this, you will never go back to var_dump
or print_r
anymore. That alone says a thousand words.
public static function pretty_dump($array) { echo '<pre>' . var_export($array, true) . '</pre>'; }
After using this, you will never go back to var_dump
or print_r
anymore. That alone says a thousand words.
public static function pretty_dump($array) { echo '<pre>' . var_export($array, true) . '</pre>'; }
Be First to Comment