PHP Velho Oeste 2024

TokyoTyrantTable::genUid

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrantTable::genUidGenerate unique id

Descrierea

public TokyoTyrantTable::genUid ( ) : int

Generates an unique id inside the table database. In table databases rows are referenced using a numeric primary key.

Parametri

Această funcție nu are parametri.

Valorile întoarse

Returns an unique id or throws TokyoTyrantException on error

Exemple

Example #1 TokyoTyrantTable::genUid() example

<?php
$tt 
= new TokyoTyrantTable("localhost"1122);

echo 
$tt->genUid();
?>

Exemplul de mai sus va afișa ceva similar cu:

4

A se vedea și

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top