array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'splfixedarray.offsetunset.php', 1 => 'SplFixedArray::offsetUnset', 2 => 'Unsets the value at the specified $index', ), 'up' => array ( 0 => 'class.splfixedarray.php', 1 => 'SplFixedArray', ), 'prev' => array ( 0 => 'splfixedarray.offsetset.php', 1 => 'SplFixedArray::offsetSet', ), 'next' => array ( 0 => 'splfixedarray.rewind.php', 1 => 'SplFixedArray::rewind', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/splfixedarray/offsetunset.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SplFixedArray::offsetUnset

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

SplFixedArray::offsetUnsetUnsets the value at the specified $index

说明

public SplFixedArray::offsetUnset(int $index): void

Unsets the value at the specified index.

参数

index

The index being unset.

返回值

没有返回值。

错误/异常

Throws RuntimeException when index is outside the defined size of the array or when index cannot be parsed as an integer.