|
CollectionModify::bindBind value to query placeholder Description
public mysql_xdevapi\CollectionModify mysql_xdevapi\CollectionModify::bind(array
$placeholder_values )Bind a parameter to the placeholder in the search condition of the modify operation. The placeholder has the form of :NAME where ':' is a common prefix that must always exists before any NAME where NAME is the name of the placeholder. The bind method accepts a list of placeholders if multiple entities have to be substituted in the search condition of the modify operation. Parameters
Return ValuesA CollectionModify object that can be used to execute the command, or to add additional operations. ExamplesExample #1 mysql_xdevapi\CollectionModify::bind example
The above example will output something similar to: Array ( [0] => Array ( [_id] => 00005b6b53610000000000000110 [name] => Bernie [traits] => Array ( [0] => Friend [1] => Brother [2] => Human [3] => Happy ) ) ) |