Php/docs/internals2.counter.counter-class.getnamed

From Get docs

Counter::getNamed

Counter::getNamed Retrieve an existing named counter


Description

static Counter::getNamed ( string $name ) : Counter

Counter::getNamed() returns an existing counter by name if that name exists, or NULL otherwise. This is a static function.


Parameters

name
The counter name to search for.


Return Values

Counter::getNamed() returns an existing counter by name if that name exists, or NULL otherwise.