• PHP マニュアル
  • 関数リファレンス
  • その他の基本モジュール
  • ストリーム
  • streamWrapper
  • streamWrapper::__construct
  • streamWrapper::__destruct
  • streamWrapper::dir_closedir
  • streamWrapper::dir_opendir
  • streamWrapper::dir_readdir
  • streamWrapper::dir_rewinddir
  • streamWrapper::mkdir
  • streamWrapper::rename
  • streamWrapper::rmdir
  • streamWrapper::stream_cast
  • streamWrapper::stream_close
  • streamWrapper::stream_eof
  • streamWrapper::stream_flush
  • streamWrapper::stream_lock
  • streamWrapper::stream_metadata
  • streamWrapper::stream_open
  • streamWrapper::stream_read
  • streamWrapper::stream_seek
  • streamWrapper::stream_set_option
  • streamWrapper::stream_stat
  • streamWrapper::stream_tell
  • streamWrapper::stream_truncate
  • streamWrapper::stream_write
  • streamWrapper::unlink
  • streamWrapper::url_stat
streamWrapper::stream_write
streamWrapper::url_stat
streamWrapper
PHP マニュアル

streamWrapper::unlink

ファイルを削除する

説明

public bool streamWrapper::unlink(string $path)

このメソッドは、unlink に対応してコールされます。

注意:

適切なエラーメッセージを返すためには、 ラッパーがファイルの削除に対応していない場合にはこのメソッドを定義しては いけません。

パラメータ

path

削除したいファイルの URL。

戻り値

成功した場合に true を、失敗した場合に false を返します。

エラー / 例外

このメソッドのコールに (未実装などの理由で) 失敗した場合、 E_WARNING を発行します。

注意

注意:

有効なコンテキストがコール元関数に渡された場合に streamWrapper::$context プロパティが更新されます。

参考

  • unlink
  • streamWrapper::rmdir