$fieldsgetAllNames()

Get all field names

Available since version 3.0.194.

Usage

// basic usage
$array = $fields->getAllNames();

// usage with all arguments
$array = $fields->getAllNames(string $indexType = '');

Arguments

NameType(s)Description
$indexType (optional)string

One of 'name', 'id' or blank string for no index Default:''

Return value

array


$fields methods and properties

API reference based on ProcessWire core version 3.0.251