@public #var_dump #variable #write #file #array #object #save

This is how to var_dump to a file with php

<?php
/** Thanks to Pascal Landau 
 ** https://plus.google.com/105523642741376989823/posts
**/
$handle = fopen("path/log.log","a");
fwrite($handle, var_export($array_or_object, true));
fclose($handle);
?>