관리-도구
편집 파일: dbase_numfields_basic.phpt
--TEST-- dbase_numfields(): basic functionality --SKIPIF-- <?php if (!extension_loaded('dbase')) die('skip dbase extension not available'); ?> --FILE-- <?php $filename = __DIR__ . DIRECTORY_SEPARATOR . 'dbase_numfields_basic.dbf'; copy(__DIR__ . DIRECTORY_SEPARATOR . 'example.dbf', $filename); $db = dbase_open($filename, DBASE_RDWR); var_dump($db); var_dump(dbase_numfields($db)); var_dump(dbase_close($db)); ?> ===DONE=== --EXPECTF-- resource(%d) of type (dbase) int(7) bool(true) ===DONE=== --CLEAN-- <?php $filename = __DIR__ . DIRECTORY_SEPARATOR . 'dbase_numfields_basic.dbf'; unlink($filename); ?>