note 119916 added to language.namespaces.definitionmultiple

From: Date: Tue, 20 Sep 2016 00:05:29 +0000
Subject: note 119916 added to language.namespaces.definitionmultiple
Groups: php.notes 
Request: Send a blank email to php-notes+get-206630@lists.php.net to get a copy of this message
One should not confuse the non bracketed syntax (with a semi column at the end of the namespace statements) and the bracketed syntax (with no semi colums). Adding brackets after namespace statements with a semi column is NOT the bracketed syntax. It is only the "non bracketed" syntax with useless brackets. In particular, the only way to mix namespaces with the unnamed space within a same file is to use the true non bracketed syntax (with no semi column). As rightfully pointed out by others, in the true bracketed syntax, the use statements must be withing the brackets. ---- Server IP: 72.52.91.14 Probable Submitter: 198.251.62.95 ---- Manual Page -- http://php.net/manual/en/language.namespaces.definitionmultiple.php Edit -- https://master.php.net/note/edit/119916 Del: integrated -- https://master.php.net/note/delete/119916/integrated Del: useless -- https://master.php.net/note/delete/119916/useless Del: bad code -- https://master.php.net/note/delete/119916/bad+code Del: spam -- https://master.php.net/note/delete/119916/spam Del: non-english -- https://master.php.net/note/delete/119916/non-english Del: in docs -- https://master.php.net/note/delete/119916/in+docs Del: other reasons-- https://master.php.net/note/delete/119916 Reject -- https://master.php.net/note/reject/119916 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206630) next »