WireArray::set()
Set an item by key in the WireArray.
Usage
$wireArray->set($key, $value);
Arguments
Name | Type(s) | Description |
---|---|---|
$key | int string | Key of item to set. |
$value | int string array object Wire | Item value to set. |
Return value
$this
Object instance it was called from (method supports fluent interface).
Exceptions
Method can throw exceptions on error:
WireException
- If given an item not compatible with this WireArray.
WireArray methods and properties
API reference based on ProcessWire core version 3.0.251