Variables (static, reference)

From: Date: Sun, 19 Mar 2000 18:46:03 +0000
Subject: Variables (static, reference)
Groups: php.version4 
Request: Send a blank email to php-version4+get-12407@lists.php.net to get a copy of this message
Hi, Is it possible to have static variables in classes? I would like a variable that is shared between multiple instances of the class. Also, is it possible to have two variables 'point' to the same object? If I do: $a = new Object() $b = $a; $a is copied into $b. When I change a value in object $a, it is not changed in object $b. Do PHP3/4 have the equivalent of C pointers or reference variables? Thanks in advance, -Rasmus K. Brosboel.

« previous php.version4 (#12407) next »