svn: /phpdoc/en/trunk/language/types/ boolean.xml

From: Date: Mon, 27 Jun 2011 15:26:07 +0000
Subject: svn: /phpdoc/en/trunk/language/types/ boolean.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-8325@lists.php.net to get a copy of this message
mgf Mon, 27 Jun 2011 15:26:07 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=312534 Log: Fix typos, improve English. Be more explicit about non-usefulness of ==TRUE. Changed paths: U phpdoc/en/trunk/language/types/boolean.xml Modified: phpdoc/en/trunk/language/types/boolean.xml =================================================================== --- phpdoc/en/trunk/language/types/boolean.xml 2011-06-27 14:20:21 UTC (rev 312533) +++ phpdoc/en/trunk/language/types/boolean.xml 2011-06-27 15:26:07 UTC (rev 312534) @@ -32,8 +32,8 @@ </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 @@ <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 @@ 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 @@ <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>

« previous php.doc.cvs (#8325) next »