TokyoTyrant
PHP Manual

TokyoTyrant::num

(PECL tokyo_tyrant >= Unknown)

TokyoTyrant::numNumber of records in the database

Описание

public int TokyoTyrant::num ( void )

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

Вж. също


TokyoTyrant
PHP Manual