PHP Doku:: Number of records in the database - tokyotyrant.num.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische Datenbankerweiterungentokyo_tyrantThe TokyoTyrant classTokyoTyrant::num

Ein Service von Reinhard Neidl - Webprogrammierung.

The TokyoTyrant class

<<TokyoTyrant::getIterator

TokyoTyrant::out>>

TokyoTyrant::num

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::numNumber of records in the database

Beschreibung

public int TokyoTyrant::num ( void )

Returns the number of records in the database

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

Returns number of records in the database

Beispiele

Beispiel #1 TokyoTyrant::num() example

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

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

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

1234

Siehe auch


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)