3 articles PHP

PHP

var dump to file <?php ob_start(); var_dump($STRING_TO_DUMP); $output = ob_get_clean(); $outputFile = “output.txt”; $fileHandle = fopen($outputFile, ‘a’) or die(“File creation error.”); fwrite($fileHandle, $output); fclose($fileHandle); ?> +++++++++++