SelectableOptionArray::isIdentical() method

Is the given WireArray identical to this one?

Usage

// basic usage
$bool = $selectableOptionArray->isIdentical(WireArray $items);

// usage with all arguments
$bool = $selectableOptionArray->isIdentical(WireArray $items, $strict = true);

Arguments

NameType(s)Description
itemsWireArray
strict (optional)bool, int

Use strict mode? Optionally specify one of the following: true (boolean): Default. Compares items, item object instances, order, and any other data contained in WireArray. false (boolean): Compares only that items in the WireArray resolve to the same order and values (though not object instances).

Return value

bool

True if identical, false if not.


SelectableOptionArray methods and properties

API reference based on ProcessWire core version 3.0.244

“Indeed, if ProcessWire can be considered as a CMS in its own right, it also offers all the advantages of a CMF (Content Management Framework). Unlike other solutions, the programmer is not forced to follow the proposed model and can integrate his/her ways of doing things.” —Guy Verville, Spiria Digital Inc.