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