elenat82
6/15/2015 - 2:14 PM

variabili static.php

<?php
function contatore()
{ 
    static $volte = 0;
    echo "<p>A questa chiamata la variabile vale ".$volte++."</p>";
} 
contatore();
contatore();
contatore();
contatore();
?>