(PHP 5 >= 5.0.0)
ArrayAccess::offsetSet — Offset to set
Assigns a value to the specified offset.
The offset to assign the value to.
The value to set.
Não há valor retornado.
offsetparameter will be set to
NULLif another value is not available, like in the following example.
$arrayaccess = "first value";
$arrayaccess = "second value";
O exemplo acima irá imprimir:Array (  => first value  => second value )
This function is not called in assignments by reference and otherwise indirect changes to array dimensions overloaded with ArrayAccess (indirect in the sense they are made not by changing the dimension directly, but by changing a sub-dimension or sub-property or assigning the array dimension by reference to another variable). Instead, ArrayAccess::offsetGet() is called. The operation will only be successful if that method returns by reference, which is only possible since PHP 5.3.4.