Skip to content

Instantly share code, notes, and snippets.

@omarkdev
Created August 15, 2017 18:27
Show Gist options
  • Save omarkdev/93b574aebc4edf6e719aff7f094c23b1 to your computer and use it in GitHub Desktop.
Save omarkdev/93b574aebc4edf6e719aff7f094c23b1 to your computer and use it in GitHub Desktop.
<?php
protected function debug($data)
{
$fileName = "/home/mfurtado/mark.txt";
$content = file_get_contents($fileName);
$newContent = $content . "------------\n".json_encode($data)."\n------------\n";
file_put_contents($fileName, $newContent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment