note 93882 added to language.namespaces.definition

From: Date: Mon, 05 Oct 2009 11:20:48 +0000
Subject: note 93882 added to language.namespaces.definition
Groups: php.notes 
Request: Send a blank email to php-notes+get-161344@lists.php.net to get a copy of this message
"A file containing a namespace must declare the namespace at the top of the file before any other code" It might be obvious, but this means that you <b>can</b> include comments and white spaces before the namespace keyword. <?php // Lots // of // interesting // comments and white space namespace Foo; class Bar { } ?> ---- Server IP: 83.137.20.135 Probable Submitter: 145.58.169.179 ---- Manual Page -- http://www.php.net/manual/en/language.namespaces.definition.php Edit -- https://master.php.net/note/edit/93882 Del: integrated -- https://master.php.net/note/delete/93882/integrated Del: useless -- https://master.php.net/note/delete/93882/useless Del: bad code -- https://master.php.net/note/delete/93882/bad+code Del: spam -- https://master.php.net/note/delete/93882/spam Del: non-english -- https://master.php.net/note/delete/93882/non-english Del: in docs -- https://master.php.net/note/delete/93882/in+docs Del: other reasons-- https://master.php.net/note/delete/93882 Reject -- https://master.php.net/note/reject/93882 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161344) next »