Home > Backend Development > PHP Tutorial > 请问几个关于function的有关问题

请问几个关于function的有关问题

WBOY
Release: 2016-06-13 13:28:30
Original
752 people have browsed it

请教几个关于function的问题
function yi($value){
echo $value;

}

yi(5); 最后怎么得不出 5

还有
function er($value){
return $value;
}

echo yi(5)


这些该怎么去理解啊

------解决方案--------------------
function yi($value){
echo $value;

}

yi(5);
可以输出5啊...

后面那个函数 返回结果

那么就应该写 echo er(5); 而不是 echo yi(5);了

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