mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix typos, improve English. Be more explicit about non-usefulness of ==TRUE.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312534 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
7f7428363d
commit
7743a1203a
1 changed files with 5 additions and 5 deletions
|
@ -32,8 +32,8 @@ $foo = True; // assign the value TRUE to $foo
|
|||
</informalexample>
|
||||
|
||||
<para>
|
||||
Typically, some kind of <link linkend="language.operators">operator</link>
|
||||
which returns a <type>boolean</type> value, and the value is passed on to a
|
||||
Typically, the result of an <link linkend="language.operators">operator</link>
|
||||
which returns a <type>boolean</type> value is passed on to a
|
||||
<link linkend="language.control-structures">control structure</link>.
|
||||
</para>
|
||||
|
||||
|
@ -41,7 +41,7 @@ $foo = True; // assign the value TRUE to $foo
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// == is an operator which test
|
||||
// == is an operator which tests
|
||||
// equality and returns a boolean
|
||||
if ($action == "show_version") {
|
||||
echo "The version is 1.23";
|
||||
|
@ -52,7 +52,7 @@ if ($show_separators == TRUE) {
|
|||
echo "<hr>\n";
|
||||
}
|
||||
|
||||
// ...because instead, this can be used:
|
||||
// ...because this can be used with exactly the same meaning:
|
||||
if ($show_separators) {
|
||||
echo "<hr>\n";
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ if ($show_separators) {
|
|||
<simpara>
|
||||
To explicitly convert a value to <type>boolean</type>, use the
|
||||
<literal>(bool)</literal> or <literal>(boolean)</literal> casts. However, in
|
||||
most cases the cast is unncecessary, since a value will be automatically
|
||||
most cases the cast is unnecessary, since a value will be automatically
|
||||
converted if an operator, function or control structure requires a
|
||||
<type>boolean</type> argument.
|
||||
</simpara>
|
||||
|
|
Loading…
Reference in a new issue