PHP - Manual: stream_wrapper_unregister
2024-11-14
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
stream_wrapper_unregister — Unregister a URL wrapper
$protocol
): boolAllows you to disable an already defined stream wrapper. Once the wrapper has been disabled you may override it with a user-defined wrapper using stream_wrapper_register() or reenable it later on with stream_wrapper_restore().
protocol
成功时返回 true
, 或者在失败时返回 false
。
官方地址:https://www.php.net/manual/en/function.stream-wrapper-unregister.php