PHP Velho Oeste 2024

delete

deleteunlink()unset() を参照ください

説明

PHP には、delete というキーワードや関数は存在しません。 もしあなたがファイルを削除する方法を探してこのページにたどり着いたのなら、 unlink() を試してください。 ローカルスコープから変数を削除する場合は、 unset() を参照ください。

参考

  • unlink() - ファイルを削除する
  • unset() - 指定した変数の割当を解除する

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