003.phpt

来自「php-4.4.7学习linux时下载的源代码」· PHPT 代码 · 共 21 行

PHPT
21
字号
--TEST--DBM Insert/Replace/Fetch Test--SKIPIF--<?php if (!extension_loaded("db")) print "skip"; ?>--FILE--<?php	require_once('test.inc');	if (dbmopen($db_file, "n")) {		dbminsert($db_file, "key1", "This is a test insert");		dbmreplace($db_file, "key1", "This is the replacement text");		@dbminsert($db_file, "key1", "This is another replacement text?");		$a = dbmfetch($db_file, "key1");		dbmclose($db_file);		echo $a;	} else {		echo "Error creating database\n";	}?>--EXPECT--This is the replacement text

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?