note 105866 added to language.namespaces.definition

From: Date: Tue, 20 Sep 2011 23:32:35 +0000
Subject: note 105866 added to language.namespaces.definition
Groups: php.notes 
Request: Send a blank email to php-notes+get-183323@lists.php.net to get a copy of this message
In addition to what was said by jeremeamia, namespaces seem to have the same naming constraints as PHP classes. (http://us2.php.net/manual/en/language.oop5.basic.php) <?php namespace _abc; // valid namespace abc; // valid namespace abc123; // valid namespace a\b\c; // valid namespace 123abc; // invalid, can't start with number namespace abc\123; // invalid, sub-namespaces cant start with numbers either namespace function; // invalid, predefined keyword ?> ---- Server IP: 192.41.42.26 Probable Submitter: 64.191.49.8 ---- Manual Page -- http://www.php.net/manual/en/language.namespaces.definition.php Edit -- https://master.php.net/note/edit/105866 Del: integrated -- https://master.php.net/note/delete/105866/integrated Del: useless -- https://master.php.net/note/delete/105866/useless Del: bad code -- https://master.php.net/note/delete/105866/bad+code Del: spam -- https://master.php.net/note/delete/105866/spam Del: non-english -- https://master.php.net/note/delete/105866/non-english Del: in docs -- https://master.php.net/note/delete/105866/in+docs Del: other reasons-- https://master.php.net/note/delete/105866 Reject -- https://master.php.net/note/reject/105866 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183323) next »