ArrayObject::offsetSet
ArrayObject::setFlags
ArrayObject
PHP Manual

# ArrayObject::offsetUnset

(PHP 5 >= 5.1.0)

ArrayObject::offsetUnset — Unsets the value at the specified index

### 설명

void ArrayObject::offsetUnset ( mixed `$index` )

Unsets the value at the specified index.

### 인수

`index`

  The index being unset.

### 반환값

값을 반환하지 않습니다.

### 예제

Example #1 ArrayObject::offsetunset example

`<?php
$arrayobj = new ArrayObject(array(0=>'zero',2=>'two'));
$arrayobj->offsetunset(2);
var_dump($arrayobj);
?>`

위 예제의 출력:

    object(ArrayObject)#1 (1) {
      [0]=>
      string(4) "zero"
    }

ArrayObject::offsetSet
ArrayObject::setFlags
ArrayObject
PHP Manual