TokyoTyrant::num

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::numNumber of records in the database

说锟斤拷

public TokyoTyrant::num ( void ) : int

Returns the number of records in the database

锟斤拷锟斤拷

锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷

锟斤拷锟斤拷值

Returns number of records in the database

锟斤拷锟斤拷

Example #1 TokyoTyrant::num() example

<?php
/* Connect to a database on default port */
$tt = new TokyoTyrant("localhost");

/* Echo the number of records */
echo $tt->num();
?>

锟斤拷锟斤拷锟斤拷锟教碉拷锟斤拷锟斤拷锟斤拷锟斤拷冢锟�

1234

锟轿硷拷