RE: [PHP] Static Class Member References

2010-07-14 Thread Ford, Mike
-Original Message- From: Daniel Kolbo [mailto:kolb0...@umn.edu] Sent: 11 July 2010 23:19 Hello PHPers, I'm having some trouble understanding some PHP behaviour. The following example script exhibits the behaviour which I cannot understand. I'm pretty sure that this is *not* a

Re: [PHP] Static Class Member References

2010-07-14 Thread David Harkness
Ah, so assigning a reference to a variable already holding a reference changes that variable's reference only in the same way that unsetting a reference doesn't unset the other variables referencing the same thing, yes? $a = 5; $b = $a; print $a; 5 unset($b); // does not affect $a print $a; 5

Re: [PHP] Static Class Member References

2010-07-14 Thread Daniel Kolbo
David Harkness wrote: Ah, so assigning a reference to a variable already holding a reference changes that variable's reference only in the same way that unsetting a reference doesn't unset the other variables referencing the same thing, yes? $a = 5; $b = $a; print $a; 5 unset($b); //

Re: [PHP] Static Class Member References

2010-07-13 Thread Richard Quadling
On 12 July 2010 22:54, Daniel Kolbo kolb0...@umn.edu wrote: Richard Quadling wrote: On 11 July 2010 23:19, Daniel Kolbo kolb0...@umn.edu wrote: Hello PHPers, I'm having some trouble understanding some PHP behaviour.  The following example script exhibits the behaviour which I cannot

Re: [PHP] Static Class Member References

2010-07-13 Thread Richard Quadling
On 13 July 2010 09:46, Richard Quadling rquadl...@gmail.com wrote: On 12 July 2010 22:54, Daniel Kolbo kolb0...@umn.edu wrote: Richard Quadling wrote: On 11 July 2010 23:19, Daniel Kolbo kolb0...@umn.edu wrote: Hello PHPers, I'm having some trouble understanding some PHP behaviour.  The

Re: [PHP] Static Class Member References

2010-07-13 Thread Daniel Kolbo
Richard Quadling wrote: On 12 July 2010 22:54, Daniel Kolbo kolb0...@umn.edu wrote: Richard Quadling wrote: On 11 July 2010 23:19, Daniel Kolbo kolb0...@umn.edu wrote: Hello PHPers, I'm having some trouble understanding some PHP behaviour. The following example script exhibits the

Re: [PHP] Static Class Member References

2010-07-13 Thread Daniel Kolbo
Richard Quadling wrote: On 13 July 2010 09:46, Richard Quadling rquadl...@gmail.com wrote: On 12 July 2010 22:54, Daniel Kolbo kolb0...@umn.edu wrote: Richard Quadling wrote: On 11 July 2010 23:19, Daniel Kolbo kolb0...@umn.edu wrote: Hello PHPers, I'm having some trouble understanding some

Re: [PHP] Static Class Member References

2010-07-12 Thread Richard Quadling
On 11 July 2010 23:19, Daniel Kolbo kolb0...@umn.edu wrote: Hello PHPers, I'm having some trouble understanding some PHP behaviour.  The following example script exhibits the behaviour which I cannot understand. [code] ?php class A {        public static $a = 3;        function

Re: [PHP] Static Class Member References

2010-07-12 Thread Daniel Kolbo
Richard Quadling wrote: On 11 July 2010 23:19, Daniel Kolbo kolb0...@umn.edu wrote: Hello PHPers, I'm having some trouble understanding some PHP behaviour. The following example script exhibits the behaviour which I cannot understand. [code] ?php class A { public static $a = 3;

[PHP] Static Class Member References

2010-07-11 Thread Daniel Kolbo
Hello PHPers, I'm having some trouble understanding some PHP behaviour. The following example script exhibits the behaviour which I cannot understand. [code] ?php class A { public static $a = 3; function __construct() { //self::$a = $this; //[i]