Home >Backend Development >PHP Tutorial > return跟exit的区别

return跟exit的区别

WBOY
WBOYOriginal
2016-06-13 12:42:45928browse

return和exit的区别?
主要是放在php主体代码中,有什么用法上的细致区别?

<?php<br />
echo  "a";<br />
return ;<br />
echo  "b";<br />
?><br />



<?php<br />
echo  "a";<br />
exit ;<br />
echo  "b";<br />
?><br />



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