com doc/zh: Sync with EN: language/control-structures/while.xml
[email protected] (Dai Jie) Sun, 17 Jan 2021 12:35:23 +0000
| Newsgroups | php.doc.zh |
|---|---|
| Message-ID | <[email protected]> |
Commit: dd0c13ae9cee6796fd83db28bdba8c52b71559c0 Author: daijie <[email protected]> Sun, 17 Jan 2021 20:35:23 +0800 Parents: 3c7687e06f92eea463bfc991a6d892e5f6c975be Branches: master Link: http://git.php.net/?p=doc/zh.git;a=commitdiff;h=dd0c13ae9cee6796fd83db28bdba8c52b71559c0 Log: Sync with EN Changed paths: M language/control-structures/while.xml Diff: diff --git a/language/control-structures/while.xml b/language/control-structures/while.xml index 7eb05e76..df03c0a9 100644 --- a/language/control-structures/while.xml +++ b/language/control-structures/while.xml @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> <!-- $Author$ --> -<!-- EN-Revision: c7aca484fd1d7eaccd03f0e011f858fa93d105b9 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 7104ee97ced1768a3231588dfc0bc0d7eb1117ad Maintainer: dallas Status: ready --> <sect1 xml:id="control-structures.while" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title><literal>while</literal></title> + <title>while</title> <?phpdoc print-version-for="while"?> <para> <literal>while</literal> 循环是 PHP 中最简单的循环类型。它和 @@ -22,8 +22,8 @@ while (expr) <simpara> <literal>while</literal> 语句的含意很简单,它告诉 PHP 只要 <literal>while</literal> 表达式的值为 &true; - 就重复执行嵌套中的循环语句。表达式的值在每次开始循环时检查,所以即使这个值在循环语句中改变了,语句也不会停止执行,直到本次循环结束。有时候如果 - <literal>while</literal> 表达式的值一开始就是 &false;,则循环语句一次都不会执行。 + 就重复执行嵌套中的循环语句。表达式的值在每次开始循环时检查,所以即使这个值在循环语句中改变了,语句也不会停止执行,直到本次循环结束。 + 如果 <literal>while</literal> 表达式的值一开始就是 &false;,则循环语句一次都不会执行。 </simpara> <para> 和 <literal>if</literal> 语句一样,可以在 <literal>while</literal>