ArrayAccess::offsetSet
ArrayAccess::offsetSet
Assign a value to the specified offset
void **ArrayAccess::offsetSet** mixed $offset mixed $value
Assigns a value to the specified offset.
offsetThe offset to assign the value to.
valueThe value to set.
return.void
Opmerking: > The parameter will be set to null if another value is not available, like in the following example.
`offset````php
```php Array ( [0] => first value [1] => second value )
Opmerking: > This function is not called in assignments by reference and otherwise indirect changes to array dimensions overloaded with (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, is called. The operation will only be successful if that method returns by reference.
ArrayAccess``ArrayAccess::offsetGet