unlink
(PHP 4, PHP 5)
unlink — Deletes a file
說明
bool unlink
( string $filename
[, resource $context
] )
Deletes filename . Similar to the Unix C unlink() function.
Return值
如果成功則回傳 TRUE,失敗則回傳 FALSE。
更新日誌
版本 | 說明 |
---|---|
5.0.0 | As of PHP 5.0.0 unlink() can also be used with some URL wrappers. Refer to List of Supported Protocols/Wrappers for a listing of which wrappers support unlink(). |