ArrayAccess
PHP Manual

ArrayAccess::offsetSet

(PHP 5 >= 5.1.0)

ArrayAccess::offsetSetOffset to set

Opis

abstract public void ArrayAccess::offsetSet ( mixed $offset , mixed $value )

Assigns a value to the specified offset.

Parametry

offset

The offset to assign the value to.

value

The value to set.

Zwracane wartości

Nie jest zwracana żadna wartość.

Notatki

Informacja: The offset parameter will be set to NULL if another value is not available, like in the following example.

<?php
$arrayaccess
[] = "value";
?>


ArrayAccess
PHP Manual