SelectableOptionArray::hasID()

Is the given id present in these selectable options?

Usage

$selectableOption = $selectableOptionArray->hasID(int $id);

Arguments

NameType(s)Description
$idint

Return value

SelectableOption bool

Returns SelectableOption if found, or boolean false if not


SelectableOptionArray methods and properties

API reference based on ProcessWire core version 3.0.251