PHP » GoLang |
login |
register |
about
|
apc_cas(PECL apc >= 3.1.1) apc_cas — Updates an old value with a new value Description
bool apc_cas
( string
$key
, int $old
, int $new
)
apc_cas() updates an already existing integer value if the
Parameters
Return Values
Returns ExamplesExample #1 apc_cas() example
<?php 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
|
more
Recently updated
more
Most requested
more
Last requests
|