WireInputData::get() method

Get a value

Available since version 3.0.141. You can also get directly or use __get(), both of which are compatible with all versions

Usage

// basic usage
$string = $wireInputData->get(string $key);

// usage with all arguments
$string = $wireInputData->get(string $key, $options = []);

Arguments

NameType(s)Description
keystring
options (optional)array, int, string

Options not currently used, but available for descending classes or future use

Return value

string int float array null

$value


WireInputData methods and properties

API reference based on ProcessWire core version 3.0.244

I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer