Posted by Yarco on 07/24/07 08:36
When using c++, we could do:
using abc = xxx.yyy; // am i right?
When using python we could do:
import abc.efg as efg
When will php support:
class My_Best_Class
{
}
define('MyClass', 'My_Best_Class');
$o = new MyClass; // use MyClass as aliasname of My_Best_Class?
It is very useful to me.
Or do you have any good ideas to do such name alias?
Navigation:
[Reply to this message]
|