note 77540 rejected from language.variables.scope by nlopess
| From: | nlopess@php.net | Date: | Mon, 03 Sep 2007 11:59:31 +0000 |
| Subject: | note 77540 rejected from language.variables.scope by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-130127@lists.php.net to get a copy of this message | ||
Note Submitter: zls0424 at gmail dot com
----
Why is this an error for static variables ?
<?php
$a = 'test'.'test';
static $b = 'test'.'test';
?>
"Parse error: syntax error, unexpected '.', expecting ',' or ';'
in test.php on line 3"