Skip to content

Instantly share code, notes, and snippets.

@jjjjcccjjf
Last active June 5, 2017 07:51
Show Gist options
  • Save jjjjcccjjf/03c97bf0acd384200d0bd1cf6c92bb0a to your computer and use it in GitHub Desktop.
Save jjjjcccjjf/03c97bf0acd384200d0bd1cf6c92bb0a to your computer and use it in GitHub Desktop.
php file write
<?php
# Generate file
$your_data = array();
$path = "/var/www/html/";
$fp = fopen($path."arrayDetails.txt", "a");
fwrite($fp, print_r($arrayInfo,true));
fclose($fp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment