Re: [PHP4BETA] Me Again...with sample code to duplicate problem
| From: | Faisal Nasim | Date: | Fri, 21 Apr 2000 09:12:01 +0000 |
| Subject: | Re: [PHP4BETA] Me Again...with sample code to duplicate problem | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-13864@lists.php.net to get a copy of this message | ||
: <?
:
: $variable = "Hello";
:
: class Bob {
:
: var $newvar = $GLOBALS["variable"]; # <--- Parse error here..works fine in
: php3
That is not valid in PHP4 anymore.
class Bob {
var $newvar;
function Bob ()
{
$this -> newvar = $GLOBALS["variable"];
}
// etc here
}
Enjoy!
Faisal