php8.5
Home/ Manual/ predefined / arrayaccess/ ArrayAccess::offsetUnset

ArrayAccess::offsetUnset

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Unset an offset

Description

ArrayAccess::offsetUnset(mixed $offset): void

Unsets an offset.

Note

This method will not be called when type-casting to (unset)

Parameters

offset

The offset to unset.

Return Values

Void

Source: language/predefined/arrayaccess/offsetunset.xml · from the official PHP manual (php/doc-en)