Created
November 9, 2015 14:36
-
-
Save babab/61bff4afbcce92e52459 to your computer and use it in GitHub Desktop.
Quickly dump a variable to a line in a file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function dumpdebug($data) | |
{ | |
file_put_contents('/var/www/dumpdebug', $data . "\n", FILE_APPEND | LOCK_EX); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment