Skip to content

Instantly share code, notes, and snippets.

@akwatra
akwatra / print_pre.php
Created March 12, 2018 08:29
easier and better readability with print_r and vardump for php developers
In browser debugging print_r and vardump is not enough and lots of developers have to each time wrap with <pre>
I created and using following function as set globally in bootstrap file and it makes debuggig easier and better readability
```
/**
@param $mixed mandatory any data type
@param $die optional , default true