Me Again...with sample code to duplicate problem
| From: | Bob Silva | Date: | Fri, 21 Apr 2000 08:53:55 +0000 |
| Subject: | Me Again...with sample code to duplicate problem | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-13862@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
function Doit() {
echo $this->newvar;
}
}
$classs = new Bob;
$classs->Doit();
?>