函数:dba_replace()


dba_replace

改动或加入资料。

语法: boolean dba_replace(string key, string value, int handle);

返回值: 布尔值

函数种类: 数据库功能

内容说明

本函数改动数据库中的资料,若资料不存在则加入。参数 key 为键值 (key) 字符串。参数 value 为欲改动的资料内容。参数 handle 为打开数据库时所返回来的代号 ID。成功则返回 true 值。

参考

dba_exists()  dba_fetch()  dba_delete()  dba_insert()  



[ 上一页 PHP 手册 下一页 ]

PHP 首页 | PHP 导读 | PHP 函数库 | PHP 函数索引 | PHP 范例程序