Per WireArray interface, Field keys have to be integers
Template method that descendant classes may use to validate the key of items added to this WireArray
Usage
$bool = $fieldsArray->isValidKey(int $key);
Arguments
Name | Type(s) | Description |
---|---|---|
key | int | Key to test |
Return value
bool
True if key is valid and may be used, false if not
FieldsArray methods and properties
API reference based on ProcessWire core version 3.0.236