Hi Martin,

Aliasing is possible, there is an example of it in the test cases of the patch 
[0].

As for your example, it's valid.

Regards,

Igor

[0]: 
https://github.com/igorw/php-src/blob/use-function/Zend/tests/use_function/alias.phpt

On Jul 23, 2013, at 10:10 AM, Martin Keckeis <martin.kecke...@gmail.com> wrote:

>  Hello,
> 
> some questions:
> Alias is not required, but is it possible?
> 
> Would it be possible to write something like this?
> <?php
> namespace MySpace;
> 
> use OtherLib\HtmlResponse;
> use function html\div, html\p, html\em;
> 
> class MyClass{
> 
>     public function getResponse(){
>         return new HtmlResponse( div(p('Some', em('Text'))) );
>     }
> }
> ?>
> 
> Best regards
> Martin



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to