PHP Knowledge

  • what is PHP

  • What is PHP class
  • Smarty PHP
  • PHP Calendar

  • PHP delete
  • PHP count

  • PHP Directory
  • php echo
  • php exec
  • PHP explode
  • PHP fopen

  • PHP Form
  • PHP get

  • PHP If
  • PHP list
  • php login
  • PHP LOOP
  • PHP Random
  • PHP Redirect
  • PHP replace
  • PHP session
  • PHP sort
  • PHP split
  • php substr
  • PHP Syntax
  • PHP time

  • PHP upload
  • php URL
  • PHP version
  • PHP Cookie
  • PHP Global
  • php LDAP
  • PHP list
  • php strip
  • PHP template
  • php PEAR
  • PHP md5
  • PHP ini
  • PHP FTP
  • More others

    Javascript
    CSS
    PHP

     

    PHP delete


    PHP delete() Function

     

    PHP delete Definition and Usage

    The delete() function deletes a file.

    This function returns TRUE on success and FALSE on failure.

    PHP delete Syntax

     

    delete(file)

    Parameter

    Description

    file

    Required. Specifies the file to delete

    Example

    <?php echo delete("target.txt"); ?>

    The output of the code above will be:

    1

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  • Javascript |