PHP Conference Japan 2024

CollectionRemove::bind

(沒有版本資訊,可能僅存在於 Git 中)

CollectionRemove::bind將值綁定至預留位置

描述

public mysql_xdevapi\CollectionRemove::bind(array $placeholder_values): mysql_xdevapi\CollectionRemove

將參數綁定至移除操作的搜尋條件中的預留位置。

預留位置的形式為 :NAME,其中 ':' 是必須存在於任何 NAME 之前的通用前綴,而 NAME 是預留位置的名稱。如果多個實體必須在移除操作的搜尋條件中被替換,則 bind 方法接受預留位置列表。

警告

此函式目前未有文件說明;僅有其引數列表可用。

參數

placeholder_values

要替換到搜尋條件中的預留位置值。允許多個值,且必須以 PLACEHOLDER_NAME->PLACEHOLDER_VALUE 映射的陣列形式傳遞。

回傳值

一個 CollectionRemove 物件,可用於執行命令或新增其他操作。

範例

範例 1 mysql_xdevapi\CollectionRemove::bind() 範例

<?php

$res
= $coll->remove('age > :age_from and age < :age_to')->bind(['age_from' => 20, 'age_to' => 50])->limit(7)->execute();

?>
新增註解

使用者貢獻的註解

此頁面沒有使用者貢獻的註解。
To Top