|
TokyoTyrant::addAdds to a numeric key Beschreibung
public number TokyoTyrant::add
( string
$key
, number $increment
[, int $type = 0
] )Adds to an int or double value. This increments the value by the given amount and returns the new value. If the key does not exist a new key is created with initial value of the increment parameter. Parameter-Liste
RückgabewerteReturns the new value on success Beispiele
Beispiel #1 TokyoTyrant::add example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: 6.5 Siehe auch
|