Objective interface
Counter::__construct
The "counter" Extension - A Continuing Example
PHP Manual

# The Counter class

## Introduction

Represents a single counter object.

## Class synopsis

Counter
Counter {
Counter::__construct ( string `$name` [, integer `$initial_value` [, integer `$flags` ]] )
integer Counter::getValue ( void )
void Counter::bumpValue ( integer `$offset` )
void Counter::resetValue ( void )
mixed Counter::getMeta ( integer `$attribute` )
static Counter Counter::getNamed ( string `$name` )
static void Counter::setCounterClass ( string `$name` )
}

## Table of Contents

- Counter::__construct — Creates an instance of a Counter which maintains a single numeric value.
- Counter::getValue — Get the current value of a counter.
- Counter::bumpValue — Change the current value of a counter.
- Counter::resetValue — Reset the current value of a counter.
- Counter::getMeta — Return a piece of metainformation about a counter.
- Counter::getNamed — Retrieve an existing named counter.
- Counter::setCounterClass — Set the class returned by Counter::getNamed.

Objective interface
Counter::__construct
The "counter" Extension - A Continuing Example
PHP Manual