AW: [PHP-DEV] Importing namespaced functions

2013-04-19 Thread Robert Stoll
You can import a namespace and use an alias. For instance use com\example\cms as c; c\foo(); -Ursprüngliche Nachricht- Von: Christoph Rosse [mailto:cro...@2bepublished.at] Gesendet: Freitag, 19. April 2013 14:48 An: internals@lists.php.net Betreff: Re: [PHP-DEV] Importing namespaced fun

Re: [PHP-DEV] Importing namespaced functions

2013-04-19 Thread Christoph Rosse
On 19.04.2013 08:19, Stas Malyshev wrote: Hi! One of the shortcomings of namespaced functions in PHP is that it is not possible to import them as you can do with classes and namespaces. For code that is not in the same namespace as the function, you must always reference at least one part of th