suche nach in der

ArrayObject::serialize> <ArrayObject::offsetSet
Last updated: Fri, 11 May 2012

view this page in

ArrayObject::offsetUnset

(PHP 5 >= 5.0.0)

ArrayObject::offsetUnsetUnsets the value at the specified index

Beschreibung

public void ArrayObject::offsetUnset ( mixed $index )

Unsets the value at the specified index.

Parameter-Liste

index

The index being unset.

Rückgabewerte

Es wird kein Wert zurückgegeben.

Beispiele

Beispiel #1 ArrayObject::offsetUnset() example

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

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

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



add a note add a note User Contributed Notes
ArrayObject::offsetUnset
There are no user contributed notes for this page.

ArrayObject::serialize> <ArrayObject::offsetSet
Last updated: Fri, 11 May 2012