PHP » GoLang |
login |
register |
about
|
GoLang TokyoTyrantTable::put
request it (567)
GoLang replacement for PHP's TokyoTyrantTable::put
[edit | history]
TokyoTyrantTable::put(PECL tokyo_tyrant >= 0.1.0) TokyoTyrantTable::put — Store 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
<?phpThe 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"
}
|
more
Most requested
more
Last requests
|