|
TokyoTyrantTable::putCatConcatenates to a row Beschreibung
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. Parameter-Liste
RückgabewerteReturns the primary key and throws TokyoTyrantException on error. Beispiele
Beispiel #1 TokyoTyrantTable::putCat example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
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"
}
Siehe auch
|