capisco...

perché questo codice invece non produce nulla?

Codice PHP:
<?php
class MyClass {
// proprietà statiche
public static $instances 0;
public 
$idKey false;
// costruttore
public function __construct() {
$this->idKey = ++self::$instances;
echo 
"This is the #" $this->idKey " instance of the class MyClass. Instances created: " $this->idKey;
}
// distruttore
public function __destruct() {
echo 
"Instance #" $this->idKey " deleted.";
}
}
?>


fonte:
http://php.html.it/guide/stampa_lezi...ieta-statiche/