Skip to content

Instantly share code, notes, and snippets.

@DILL44
Created November 29, 2012 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DILL44/4167909 to your computer and use it in GitHub Desktop.
Save DILL44/4167909 to your computer and use it in GitHub Desktop.
write file for testing variable in a php file.
$file=fopen("/path/to/the/file/test.txt", 'w+',true);
$content='';
foreach ($aray as $value){
$content.="id: ".$value."\n";
}
fwrite($file,$content);
fclose($file);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment