WireArray::set()

Set an item by key in the WireArray.

Usage

$wireArray->set($key, $value);

Arguments

NameType(s)Description
$keyint string

Key of item to set.

$valueint 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