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

return跟exit的区别

WBOY
Release: 2016-06-13 11:28:43
Original
962 people have browsed it

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

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



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



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