PHP Doku:: Creates an instance of a Counter which maintains a single numeric value. - internals2.counter.counter-class.construct.html

Verlauf / Chronik / History: (4) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchPHP im Kern: Das Entwicklerhandbuch für die Zend EngineThe "counter" Extension - A Continuing ExampleThe Counter classCounter::__construct

Ein Service von Reinhard Neidl - Webprogrammierung.

The Counter class

<<The Counter class

Counter::getValue>>

Counter::__construct

Counter::__construct Creates an instance of a Counter which maintains a single numeric value.

Beschreibung

Counter::__construct() ( string $name [, integer $initial_value [, integer $flags ]] )

Creates an instance of a Counter which maintains a single numeric value.

Parameter-Liste

name
The new counter's name.
initial_value
The initial value of the counter. Defaults to zero (0).
flags
Flags for the new counter, chosen from the COUNTER_FLAG_* constants.

Rückgabewerte

Returns a Counter object on success.

Fehler/Exceptions

Counter::__construct() throws an Exception if something goes wrong.


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)