Home > php教程 > php手册 > PHP 编码规范(13)

PHP 编码规范(13)

WBOY
Release: 2016-06-13 10:20:40
Original
808 people have browsed it


6.3 返回语句

一个带返回值的return语句不使用小括号"()",除非它们以某种方式使返回值更为显见。例如:


return;

return myDisk.size();

return ($size ? $size : $defaultSize);


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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template