apcu_casUpdates an old value with a new value Description
bool apcu_cas(string
$key , int $old , int $new )
apcu_cas updates an already existing integer value if the
Parameters
Return Values
Returns ExamplesExample #1 apcu_cas example
The above example will output something similar to: $foobar = 2 $foobar == 1 ? 2 : 1 = fail $foobar == 2 ? 1 : 2 = ok $foobar = 1 $f__bar == 1 ? 2 : 1 = fail $perfection == 2 ? 1 : 2 = epic fail $foobar = 1 See Also
|