📄 internals2.counter.constants.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Predefined Constants</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="internals2.counter.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="internals2.counter.examples.html">Examples</a></div> <div class="up"><a href="internals2.counter.html">The "counter" Extension - A Continuing Example</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Predefined Constants</h1> <p class="simpara">The constants below are defined by this extension, andwill only be available when the extension has eitherbeen compiled into PHP or dynamically loaded at runtime.</p> <dl> <dt> <span class="term"> <b><tt>COUNTER_FLAG_PERSIST</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> A counter with this flag will be created as a persistent resource. </span> </dd> </dt> <dt> <span class="term"> <b><tt>COUNTER_FLAG_SAVE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> A counter with this flag will be saved between invocations of PHP. </span> </dd> </dt> <dt> <span class="term"> <b><tt>COUNTER_FLAG_NO_OVERWRITE</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> This flag causes <a href="internals2.counter.function.counter-create.html" class="function">counter_create()</a> to avoid overwriting an existing named counter with a new one. </span> </dd> </dt> <dt> <span class="term"> <b><tt>COUNTER_META_NAME</tt></b> (<a href="language.types.string.html" class="type string">string</a>) </span> <dd> <span class="simpara"> Pass this constant to get the name of a counter resource or object. </span> </dd> </dt> <dt> <span class="term"> <b><tt>COUNTER_META_IS_PERISTENT</tt></b> (<a href="language.types.string.html" class="type string">string</a>) </span> <dd> <span class="simpara"> Pass this constant to determine whether a counter resource or object is persistent (has the <b><tt>COUNTER_FLAG_PERSIST</tt></b> flag). </span> </dd> </dt> <dt> <span class="term"> <b><tt>COUNTER_RESET_NEVER</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> The counter will never be reset. </span> </dd> </dt> <dt> <span class="term"> <b><tt>COUNTER_RESET_PER_LOAD</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> The counter will be reset on each invocation of PHP. </span> </dd> </dt> <dt> <span class="term"> <b><tt>COUNTER_RESET_PER_REQUEST</tt></b> (<a href="language.types.integer.html" class="type integer">integer</a>) </span> <dd> <span class="simpara"> The counter will be reset on each request. </span> </dd> </dt> </dl> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="internals2.counter.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="internals2.counter.examples.html">Examples</a></div> <div class="up"><a href="internals2.counter.html">The "counter" Extension - A Continuing Example</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -