DatabaseQuery::bindValueGetKey()

Bind value and get unique key that refers to it in one step

Available since version 3.0.157.

Usage

// basic usage
$string = $databaseQuery->bindValueGetKey($value);

// usage with all arguments
$string = $databaseQuery->bindValueGetKey($value, $type = null);

Arguments

NameType(s)Description
$valuestring int float
$type (optional)null int string

Return value

string


DatabaseQuery methods and properties

API reference based on ProcessWire core version 3.0.251