Home  >  Article  >  Backend Development  >  php 如何定义函数的别名 和类的别名的

php 如何定义函数的别名 和类的别名的

WBOY
WBOYOriginal
2016-06-13 10:48:471330browse

php 怎么定义函数的别名 和类的别名的?
php 怎么定义函数的别名 和类的别名的?
还有变量的别名

请写个例子!O(∩_∩)O谢谢!

------解决方案--------------------
貌似只有php的内置函数才有别名啥。自定义的不行吧
function a(){
}

function b()
{
a();
}

b是a的别名 。呵呵呵

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn