WireArray::count()

Returns the number of items in this WireArray.

Fulfills PHP's Countable interface, meaning it also enables this WireArray to be used with PHP's count() function.

Example

// These two are the same
$qty = $items->count();
$qty = count($items); 

Usage

$int = $wireArray->count();

Return value

int


WireArray methods and properties

API reference based on ProcessWire core version 3.0.251