(但其他事务可读取锁定行)。
顺便说一下,在此对象上使用PHPprint指令将获得与var_dump相同的信息,且格式更为简洁,仅有一行(为可读性起见,本文将其拆分为五行书写)。
The PHP print instruction on this object, incidentally, produces the same information as var_dump in a slightly more compact form, all on one line (which we have split into five for readability).
相反,顾客要求订单时(也许为了在线查看),他们可能想查看更多信息,例如,行项上一个部件的可读名称。
By contrast, when customers request their orders (for viewing online, perhaps), they might want to see more information, for example, the human-readable name for a part on a line item.
可以看到,每隔一行都有一个灰色背景,这就提高了可读性。
As you can see, every other line has a gray background, which improves readability.
注意:有些代码清单有反斜杠字符“\”,这表示代码行是连续的,但为了可读性,这里对其格式作了调整。
Note: Some code listings may have a backslash character, "\", to indicate the line of code is continuous but has been formatted for readability.
注意清单3中扩展到多个行的程序语句是如何缩进以改善可读性的。
Notice how the program statements in Listing 3 that extend over more than one line are indented to improve readability.
将第一个段落作为可读性吊钩尤其重要,尽量保持在2到3行是比较适合的。
The first paragraph is especially important as a readability hook. Try to keep it down to two or three lines.
这样就会提高代码的可读性,并减小行的长度和源文件大小。
This improves the readability of your code and reduces line length and source-file size.
这样就会提高代码的可读性,并减小行的长度和源文件大小。
This improves the readability of your code and reduces line length and source-file size.
应用推荐