downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/internals2.counter.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/internals2.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'internals2.counter.php',
   
1 => 'The "counter" Extension - A Continuing Example',
  ),
 
'up' =>
  array (
   
0 => 'internals2.php',
   
1 => 'PHP at the Core: A Hacker\'s Guide to the Zend Engine',
  ),
 
'prev' =>
  array (
   
0 => 'internals2.preface.php',
   
1 => 'Preface',
  ),
 
'next' =>
  array (
   
0 => 'internals2.counter.setup.php',
   
1 => 'Installing/Configuring',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div>
  <h1>The &quot;counter&quot; Extension - A Continuing Example</h1>
<h2>Table of Contents</h2><ul class="chunklist chunklist_part"><li><a href="internals2.counter.setup.php">Installing/Configuring</a></li><li><a href="internals2.counter.constants.php">Predefined Constants</a></li><li><a href="internals2.counter.examples.php">Examples</a></li><li><a href="internals2.counter.counter-class.php">The Counter class</a></li><li><a href="internals2.counter.basic-interface.php">The basic interface</a></li><li><a href="internals2.counter.extended-interface.php">The extended interface</a></li></ul>

 
  <div class="partintro">
   <h1 class="title">Preface</h1>
   <p class="simpara">
    Throughout this Zend documentation, references are made to an example module
    in order to illustrate various concepts. The &quot;counter&quot; extension is this
    example, a fictional yet functional Zend module which strives to use as much
    of the Zend API as is reasonably possible. This short chapter describes the
    userland interface to the completed extension.
   </p>
 
   <blockquote><p><b class="note">Note</b>:
    <span class="simpara">
     &quot;counter&quot; serves no practical purpose whatsoever, as the functionality it
     provides is far more effectively implemented by appropriate userland code.
    </span>
   </p></blockquote>
  </div>
 
 
 
 

 
 
 
 
 

 

 </div>
<?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites