Re: [PHP4BETA] A quick clarification question about PHP4...

From: Date: Tue, 31 Aug 1999 10:57:33 +0000
Subject: Re: [PHP4BETA] A quick clarification question about PHP4...
Groups: php.version4 
Request: Send a blank email to php-version4+get-3901@lists.php.net to get a copy of this message
Jim Brain said: > It does work fine in PHP3, and I think it will work in PHP4 as well, as long > as the values passed in the init code are not variables, just values of some > type that can be determined at "compile" (or parse) time. Oh, okay. I see. So even though this works in PHP3... class myClass { function myClass($name) { $this->myVar = "Hello, $name!"; } } >>$name = "Scott"; $myInstance = new myClass($name); echo $myInstance->myVar; ...it does not/will not work in PHP4? If so, that sucks. - Scott

« previous php.version4 (#3901) next »