復位一個偏移位置的值

ArrayAccess::offsetUnset

(PHP 5, PHP 7, PHP 8)

ArrayAccess::offsetUnset復位一個偏移位置的值

說明

public ArrayAccess::offsetUnset(mixed $offset): void

復位一個偏移位置的值。

注意:

當使用 (unset) 進行型別轉換時,該方法不會被呼叫。

參數

offset

待復位的偏移位置。

返回值

沒有返回值。

Leave a Reply

Your email address will not be published. Required fields are marked *