note 112319 added to language.namespaces.definition

From: Date: Sat, 01 Jun 2013 00:19:48 +0000
Subject: note 112319 added to language.namespaces.definition
Groups: php.notes 
Request: Send a blank email to php-notes+get-195018@lists.php.net to get a copy of this message
<?php //Even though you cant add anything before the 1st namespace, you can add something before subsequent namespaces. namespace MyProject; function myfunc(){ return 1; } echo myfunc(); ?> <p>Here I can add stuff before the 2nd namespace</p> <?php namespace MyProject2; function myfunc(){ return 2; } echo myfunc(); ?> <p>Switch back to first namespace</p> <?php namespace MyProject; echo myfunc(); ?> ---- Server IP: 69.147.83.199 Probable Submitter: 70.192.70.82 ---- Manual Page -- http://php.net/manual/en/language.namespaces.definition.php Edit -- https://master.php.net/note/edit/112319 Del: integrated -- https://master.php.net/note/delete/112319/integrated Del: useless -- https://master.php.net/note/delete/112319/useless Del: bad code -- https://master.php.net/note/delete/112319/bad+code Del: spam -- https://master.php.net/note/delete/112319/spam Del: non-english -- https://master.php.net/note/delete/112319/non-english Del: in docs -- https://master.php.net/note/delete/112319/in+docs Del: other reasons-- https://master.php.net/note/delete/112319 Reject -- https://master.php.net/note/reject/112319 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#195018) next »