note 118960 added to language.namespaces.nested
| From: | maycon dot rodrigues1 at gmail dot com | Date: | Tue, 08 Mar 2016 01:58:21 +0000 |
| Subject: | note 118960 added to language.namespaces.nested | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-205113@lists.php.net to get a copy of this message | ||
The calling to a function, class or constant in the current code file can be:
<?php
namespace MyTest;
const TEST = 777;
//in this way
echo \MyTest\TEST;
//Or this way
echo TEST; // is the same "\MyTest\TEST".
You must notice others behavior for youself .
----
Server IP: 72.52.91.14
Probable Submitter: 201.93.24.102
----
Manual Page -- http://php.net/manual/en/language.namespaces.nested.php
Edit -- https://master.php.net/note/edit/118960
Del: integrated -- https://master.php.net/note/delete/118960/integrated
Del: useless -- https://master.php.net/note/delete/118960/useless
Del: bad code -- https://master.php.net/note/delete/118960/bad+code
Del: spam -- https://master.php.net/note/delete/118960/spam
Del: non-english -- https://master.php.net/note/delete/118960/non-english
Del: in docs -- https://master.php.net/note/delete/118960/in+docs
Del: other reasons-- https://master.php.net/note/delete/118960
Reject -- https://master.php.net/note/reject/118960
Search -- https://master.php.net/manage/user-notes.php