note 117043 added to language.namespaces

From: Date: Tue, 07 Apr 2015 10:35:32 +0000
Subject: note 117043 added to language.namespaces
Groups: php.notes 
Request: Send a blank email to php-notes+get-202190@lists.php.net to get a copy of this message
> Strange, it worked only when I removed the backslash before feline. > So like this is OK : echo feline\Cat::says() Yes it's normal feline is an "alias" it's not registered on the global namespace, so <?php use foo as feline; echo feline\Cat::says(); // or echo \foo\Cat::says(); ?> ---- Server IP: 72.52.91.14 Probable Submitter: 2a01:e35:8a18:bda0:6dc1:59ed:2b02:7ce3 ---- Manual Page -- http://php.net/manual/en/language.namespaces.php Edit -- https://master.php.net/note/edit/117043 Del: integrated -- https://master.php.net/note/delete/117043/integrated Del: useless -- https://master.php.net/note/delete/117043/useless Del: bad code -- https://master.php.net/note/delete/117043/bad+code Del: spam -- https://master.php.net/note/delete/117043/spam Del: non-english -- https://master.php.net/note/delete/117043/non-english Del: in docs -- https://master.php.net/note/delete/117043/in+docs Del: other reasons-- https://master.php.net/note/delete/117043 Reject -- https://master.php.net/note/reject/117043 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202190) next »