note 77539 added to language.variables.scope

From: Date: Mon, 03 Sep 2007 02:24:40 +0000
Subject: note 77539 added to language.variables.scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-130112@lists.php.net to get a copy of this message
Why is this an error for static variables? <?php $a = 'test'.'test'; static $b = 'test'.'test'; ?> It will report "Parse error: syntax error, unexpected '.', expecting ',' or ';' in test.php on line 3“ ---- Server IP: 202.38.124.246 Probable Submitter: 166.111.136.23 ---- Manual Page -- http://www.php.net/manual/en/language.variables.scope.php Edit -- https://master.php.net/note/edit/77539 Del: integrated -- https://master.php.net/note/delete/77539/integrated Del: useless -- https://master.php.net/note/delete/77539/useless Del: bad code -- https://master.php.net/note/delete/77539/bad+code Del: spam -- https://master.php.net/note/delete/77539/spam Del: non-english -- https://master.php.net/note/delete/77539/non-english Del: in docs -- https://master.php.net/note/delete/77539/in+docs Del: other reasons-- https://master.php.net/note/delete/77539 Reject -- https://master.php.net/note/reject/77539 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130112) next »