InputfieldsArray::find() method

Extends the find capability of WireArray to descend into the Inputfield children

This is non destructive and returns a brand new WireArray.

Example

// Find all items with a title property containing the word "foo"
$matches = $items->find("title%=foo");
if($matches->count()) {
  echo "Found $matches->count items";
} else {
  echo "Sorry, no items were found";
}

Usage

$items = $inputfieldsArray->find(string $selector);

Arguments

NameType(s)Description
selectorstring

Return value

WireArray InputfieldsArray


InputfieldsArray methods and properties

API reference based on ProcessWire core version 3.0.244

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull