|
TokyoTyrantTable::putStore a row Description
public int TokyoTyrantTable::put
( string
$key
, array $columns
)
Puts a new row into the database. This method parameters are Parameters
Return ValuesReturns the primary key on success and throws TokyoTyrantException on error Examples
Example #1 TokyoTyrantTable::put example
<?php The above example will output: array(2) { ["column1"]=> string(9) "some data" ["column2"]=> string(9) "more data" } array(2) { ["column1"]=> string(10) "other data" ["column2"]=> string(11) "better data" } See Also
|