PHP Velho Oeste 2024

delete

deleteSiehe unlink() oder unset()

Beschreibung

Es gibt kein delete Schlüsselwort in der PHP Sprache. Um eine Datei zu löschen, kann unlink() verwendet werden. Um eine Variable im lokalen Geltungsbereich zu löschen, kann unset() verwendet werden.

Siehe auch

  • unlink() - Löscht eine Datei
  • unset() - Löschen einer angegebenen Variablen

add a note add a note

User Contributed Notes 1 note

up
-21
Edward Morgan
10 years ago
Unlink refers to the underlying UNIX command, unlink, which removes the symbolic or hard link to the file, not necessarily the file itself. The file is only removed when all links to the file are removed.
To Top