欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

PHP unlink() 函數(shù)

定義和用法

unlink() 函數(shù)刪除文件。

若成功,則返回 true,失敗則返回 false。

語法

unlink(filename,context)
參數(shù) 描述
filename 必需。規(guī)定要刪除的文件。
context 可選。規(guī)定文件句柄的環(huán)境。Context 是可修改流的行為的一套選項(xiàng)。

提示和注釋

注釋:context 的支持是 PHP 5.0.0 添加的。

例子

<?php
$file = "test.txt";
if (!unlink($file))
  {
  echo ("Error deleting $file");
  }
else
  {
  echo ("Deleted $file");
  }
?>