Created
November 6, 2017 15:39
-
-
Save juice49/015d49632fac0c26d7723c4eeb856c44 to your computer and use it in GitHub Desktop.
PHP log
This file contains hidden or 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 l ($name) { | |
return function ($line) use ($name) { | |
file_put_contents($name, $line . PHP_EOL, FILE_APPEND); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment