Get bind values, with options
- If given a \PDOStatement or DatabaseQuery, it is assumed to be the
query
option. - When copying, you may prefer to use the copyBindValuesTo() method instead (more readable).
Note: The $options argument was added in 3.0.156, prior to this it was a $method argument, which was never used so has been removed.
Usage
// basic usage
$array = $databaseQuery->getBindValues();
// usage with all arguments
$array = $databaseQuery->getBindValues($options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
options (optional) | string, \PDOStatement, DatabaseQuery, array | Optionally specify an option:
|
Return value
array
int
Returns one of the following:
- Associative array in format [ ":column" => "value" ] where each "value" is int, string or NULL.
- if
count
option specified as true then it returns a count of values instead.
DatabaseQuery methods and properties
API reference based on ProcessWire core version 3.0.236