PHP Doku:: Basic interface - internals2.counter.examples.basic.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-Startseite ≥ PHP-Handbuch ≥ PHP im Kern: Das Entwicklerhandbuch für die Zend Engine ≥ The "counter" Extension - A Continuing Example ≥ Beispiele ≥ Basic interface

Ein Service von Reinhard Neidl - Webprogrammierung.

Beispiele

<<Beispiele

Extended interface>>

Basic interface

The basic interface provides three simple functions, illustrated here:

Beispiel #1 "counter"'s basic interface

<?php
$starting_counter_value 
= counter_get();
counter_bump(1);
$second_counter_value = counter_get();
counter_reset();
$final_counter_value = counter_get();
printf("%3d %3d %3d", $starting_counter_value, $second_counter_value, $final_counter_value);
?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

  0   1   0

The basic interface also provides a number of INI settings.


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",...)