|
TokyoTyrantTable::putStore a row Beschreibung
public int TokyoTyrantTable::put
( string
$key
, array $columns
)
Puts a new row into the database. This method parameters are Parameter-Liste
RückgabewerteReturns the primary key on success and throws TokyoTyrantException on error Beispiele
Beispiel #1 TokyoTyrantTable::put example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
array(2) {
["column1"]=>
string(9) "some data"
["column2"]=>
string(9) "more data"
}
array(2) {
["column1"]=>
string(10) "other data"
["column2"]=>
string(11) "better data"
}
Siehe auch
|