downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<CounterCounter::getValue>
Last updated: Thu, 26 Jun 2008

Counter::__construct

(No version information available, might be only in CVS)

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

Description

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

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

Parameters

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.

Return Values

Returns a Counter object on success.

Errors/Exceptions

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



add a noteadd a note User Contributed Notes
Creates an instance of a Counter which maintains a single numeric value.
There are no user contributed notes for this page.




<CounterCounter::getValue>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs