As you all know, var_dump and print_r are usefull methods to gather information of variables, but sometimes, you need to track a lot of data and is usefull to save on disk.
Here I share a simple but usefull method to save on disk variables and the ability to cehck later for this file from browser (usefull for remote instances of projects).
http://scriptcasers.com/simple-way-debug-variables-scriptcase/