Home > PHP > Function > DBA > dba_replace()

dba_replace()

dba_replace - Replace or insert entry

Syntax

bool dba_replace (string $key, string $value, resource $handle)

Arguments

  • key - The key of the entry to be replaced.
  • value - The value to be replaced.
  • handle - The database handler, returned by dba_open() or dba_popen().

Description

dba_replace() replaces or inserts the entry described with key and value into the database specified by handle.

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.