/** * @see Memcached::decrement(). * * @param string $server_key This parameter is ignored. * @param string $key The key under which to store the value. * @param int $offset The amount by which to decrement the item's value. * @param int $initial_value The value to set the item to if it does not * currently exist. * @param int $expiration The expiration time, defaults to 0. * * @return bool True on success, or false on failure. */ public function decrementByKey($server_key, $key, $offset = 1, $initial_value = 0, $expiration = 0) { return decrement($key, $offset, $initial_value, $expiration); }
function define_enums(array $names) { return array_map('define', $names, range(0, decrement(count($names)))); }