Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

counter_get(3) [php man page]

COUNTER_GET(3)															    COUNTER_GET(3)

counter_get - Get the current value of the basic counter.

SYNOPSIS
integer counter_get (void ) DESCRIPTION
counter_get(3) returns the current value of the basic interface's counter. RETURN VALUES
counter_get(3) returns an integer. SEE ALSO
counter_bump(3), counter_reset(3). PHP Documentation Group COUNTER_GET(3)

Check Out this Related Man Page

WINCACHE_UCACHE_DEC(3)							 1						    WINCACHE_UCACHE_DEC(3)

wincache_ucache_dec - Decrements the value associated with the key

SYNOPSIS
mixed wincache_ucache_dec (string $key, [int $dec_by = 1], [bool &$success]) DESCRIPTION
Decrements the value associated with the $key by 1 or as specified by $dec_by. PARAMETERS
o $key - The $key that was used to store the variable in the cache. $key is case sensitive. o $dec_by - The value by which the variable associated with the $key will get decremented. If the argument is a floating point number it will be truncated to nearest integer. The variable associated with the $key should be of type long, otherwise the function fails and returns FALSE. o $success - Will be set to TRUE on success and FALSE on failure. RETURN VALUES
Returns the decremented value on success and FALSE on failure. EXAMPLES
Example #1 Using wincache_ucache_dec(3) <?php wincache_ucache_set('counter', 1); var_dump(wincache_ucache_dec('counter', 2923, $success)); var_dump($success); ?> The above example will output: int(2922) bool(true) SEE ALSO
wincache_ucache_inc(3), wincache_ucache_cas(3). PHP Documentation Group WINCACHE_UCACHE_DEC(3)
Man Page

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

calculate the average of time series data using AWK

Hi, I have two time series data (below) merged into a file. t1 and t2 are in unit of second I want to calculate the average of V1 every second and count how many times "1" in V2 is occur within a second Input File: t1 V1 t2 V2 10.000000... (5 Replies)
Discussion started by: nica
5 Replies

2. Programming

pthread question : global variable not updated

Hi, I wrote the following program to understand mutexes. If I run the program , number of threads is shown as zero, even after creating one thread. When running with gdb, it works fine. The function process is used to update global variable (used to keep track of threads). It looks like the... (2 Replies)
Discussion started by: sanjayc
2 Replies

3. Red Hat

Using "ps" command to find high processes

Sometimes idle process(%98) and load average(98.32) are very high. When its happen I check with "top" command and I kill visible process. After killing machine status already same. How can I check high process using ps command. I want to find that which processes are using more than %50 CPU or... (5 Replies)
Discussion started by: getrue
5 Replies

4. Shell Programming and Scripting

Find the nth value in a list

Hello, I have some code that searches file names, sorts them on a field in the name, and returns the top value. # list the contents, strip off the path, and sort on field 3 as a number, returns top value TOP_OUTCOME=$(ls './'$SET_F'/'$FOLD'/'$FOLD'_anneal/'$C_PARAMS'/'$A_SET'/'*'out.txt' |... (4 Replies)
Discussion started by: LMHmedchem
4 Replies

5. Programming

Code review: recursion in circular array, reduce two functions to one?

Hello, I think there's an easier way to do this but can't seem to recall but given an array of animals and an initial value is a random index in the array, here it's 3. 3,4,5,4,3,2,1,0,1,2,3,4,5,4,3,2,1,0... inifinite repeat a quick brute force solution i came up with was two functions, i... (6 Replies)
Discussion started by: f77hack
6 Replies