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

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

WBOY
WBOYOriginal
2016-06-13 13:28:30742browse

请教几个关于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);了

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