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

WBOY
Release: 2016-06-13 10:48:47
Original
1329 people have browsed it

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

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

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

function b()
{
a();
}

b是a的别名 。呵呵呵

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!