PHP Conference Japan 2024

CrudOperationBindable::bind

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

CrudOperationBindable::bind將值綁定到佔位符

說明

abstract public mysql_xdevapi\CrudOperationBindable::bind(陣列 $placeholder_values): mysql_xdevapi\CrudOperationBindable

將值綁定到特定佔位符。

警告

此函式目前沒有說明文件;僅提供其參數列表。

參數

placeholder_values

佔位符的名稱和要綁定的值。

回傳值

一個 CrudOperationBindable 物件。

範例

範例 #1 mysql_xdevapi\CrudOperationBindable::bind() 範例

<?php

$res
= $coll->modify('name like :name')->arrayInsert('job[0]', 'Calciatore')->bind(['name' => 'ENTITY'])->execute();
$res = $table->delete()->orderby('age desc')->where('age < 20 and age > 12 and name != :name')->bind(['name' => 'Tierney'])->limit(2)->execute();

?>
新增註釋

使用者提供的註釋

此頁面沒有使用者提供的註釋。
To Top