Skip to content

Instantly share code, notes, and snippets.

@phpdave
Created April 2, 2015 13:50
Show Gist options
  • Select an option

  • Save phpdave/2b966b7003219853a512 to your computer and use it in GitHub Desktop.

Select an option

Save phpdave/2b966b7003219853a512 to your computer and use it in GitHub Desktop.
delete a file using unlink
<?php
if(unlink("test.txt"))
echo "true";
else
echo "false";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment