Re: PHP4 vs PHP5 classes

From: Date: Tue, 29 Jul 2008 05:52:56 +0000
Subject: Re: PHP4 vs PHP5 classes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-277409@lists.php.net to get a copy of this message
> I have run through the script with a debugger, and sure > enough, we only enter function Players once. > > Is this normal behaviour for PHP5 vs PHP4? > Is there a way for me to force $this->max to be calculated each time > function max is called? Since the Players method is a constructor, it's more about how you set the object(s) up. What does the loop look like before you create a new object? -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#277409) next »