offsetSet() public method
Sets the element at the specified offset.
This method is required by the SPL interface ArrayAccess. It is implicitly called when you use something like $model[$offset] = $item;
.
public void offsetSet ( $offset, $item ) | ||
---|---|---|
$offset | integer |
The offset to set element |
$item | mixed |
The element value |
Please login to continue.