apcu_casUpdates an old value with a new value Beschreibung
bool apcu_cas
( string
$key
, int $old
, int $new
)
apcu_cas updates an already existing integer value if the
Parameter-Liste
Rückgabewerte
Gibt bei Erfolg BeispieleBeispiel #1 apcu_cas example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: $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 Siehe auch
|