apcu_decDecrease a stored number Description
intfalse apcu_dec(
string $key ,int $step = 1,bool &$success = ?,int $ttl = 0) Decreases a stored integer value. Parameters
Return Values
Returns the current value of ExamplesExample #1 apcu_dec example
The above example will output something similar to: Let's do something with success 42 41 31 21 bool(true) Now, let's fail bool(false) bool(false) See Also
|