Get the field(s) of this Selector
Note that if calling this as a property (rather than a method) it can return either a string or an array.
Available since version 3.0.42. Prior versions only supported the 'field' property.
Usage
// basic usage
$string = $selector->field();
// usage with all arguments
$string = $selector->field($forceString = true);
Arguments
Name | Type(s) | Description |
---|---|---|
forceString (optional) | bool, int | Specify one of the following:
|
Return value
string
array
null
See Also
Selector methods and properties
API reference based on ProcessWire core version 3.0.236