|
TokyoTyrant::addAdds to a numeric key Description
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. Parameters
Return ValuesReturns the new value on success Examples
Example #1 TokyoTyrant::add example
<?php The above example will output something similar to: 6.5 See Also
|