|
TokyoTyrantTable::putCatConcatenates to a row Description
public void TokyoTyrantTable::putCat
( string
$key
, array $columns
)This method can be used to add new columns to existing records. Existing keys will be left unmodified but any new columns will be appended to the row. Passing null as key will generate a new row. Parameters
Return ValuesReturns the primary key and throws TokyoTyrantException on error. Examples
Example #1 TokyoTyrantTable::putCat example
<?php The above example will output: array(2) { ["column1"]=> string(9) "some data" ["column2"]=> string(9) "more data" } array(3) { ["column1"]=> string(9) "some data" ["column2"]=> string(9) "more data" ["new_column"]=> string(10) "other data" } See Also
|