simple question

From: Date: Tue, 26 Jun 2001 14:20:30 +0000
Subject: simple question
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1972@lists.php.net to get a copy of this message
i have a class example { var $i; function example() { $i=0; } function plus { $i++; } function moins { $i--; } } but when i call function moins after function plus , $i has taken the zero value ; i suppose this is because of the garbage collector but i need to know how to make $i keep its value ( like in c++ for example ) can anyone help me thanks david _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

« previous php.gtk (#1972) next »