cvs: phpdoc /en/language operators.xml

From: Date: Mon, 06 Apr 2009 20:46:30 +0000
Subject: cvs: phpdoc /en/language operators.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3659@lists.php.net to get a copy of this message
danielc Mon Apr 6 20:46:30 2009 UTC Modified files: /phpdoc/en/language operators.xml Log: * Remove trailing white space. http://cvs.php.net/viewvc.cgi/phpdoc/en/language/operators.xml?r1=1.136&r2=1.137&diff_format=u Index: phpdoc/en/language/operators.xml diff -u phpdoc/en/language/operators.xml:1.136 phpdoc/en/language/operators.xml:1.137 --- phpdoc/en/language/operators.xml:1.136 Mon Apr 6 20:45:40 2009 +++ phpdoc/en/language/operators.xml Mon Apr 6 20:46:30 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.136 $ --> +<!-- $Revision: 1.137 $ --> <chapter xml:id="language.operators" xmlns="http://docbook.org/ns/docbook"> <title>Operators</title> <simpara> @@ -23,7 +23,7 @@ sentences or paths of execution. Surrounding ternary expressions with parentheses is a very good idea. </para> - + <sect1 xml:id="language.operators.precedence"> <title>Operator Precedence</title> <para> @@ -34,7 +34,7 @@ has a higher precedence than the addition ("+") operator. Parentheses may be used to force precedence, if necessary. For instance: <literal>(1 + 5) * 3</literal> evaluates to - <literal>18</literal>. If operator precedence is equal, left to right + <literal>18</literal>. If operator precedence is equal, left to right associativity is used. </para> <para> @@ -102,7 +102,7 @@ <entry>left</entry> <entry>+ - .</entry> <entry> - <link linkend="language.operators.arithmetic">arithmetic</link>&listendand; + <link linkend="language.operators.arithmetic">arithmetic</link>&listendand; <link linkend="language.operators.string">string</link></entry> </row> <row> @@ -130,7 +130,7 @@ <entry>left</entry> <entry>&amp;</entry> <entry> - <link linkend="language.operators.bitwise">bitwise</link>&listendand; + <link linkend="language.operators.bitwise">bitwise</link>&listendand; <link linkend="language.references">references</link></entry> </row> <row> @@ -304,12 +304,12 @@ </simpara> </note> <simpara> - See also the manual page on - <link linkend="ref.math">Math functions</link>. + See also the manual page on + <link linkend="ref.math">Math functions</link>. </simpara> </sect1> - + <sect1 xml:id="language.operators.assignment"> <title>Assignment Operators</title> <simpara> @@ -321,9 +321,9 @@ <para> The value of an assignment expression is the value assigned. That is, the value of "$a = 3" is 3. This allows you to do some tricky - things: + things: <informalexample> - <programlisting role="php"> + <programlisting role="php"> <![CDATA[ <?php @@ -363,11 +363,11 @@ by reference is also supported, using the <computeroutput>$var = &amp;$othervar;</computeroutput> syntax. 'Assignment by reference' means that both variables end - up pointing at the same data, and nothing is copied anywhere. - To learn more about references, please read <link - linkend="language.references">References explained</link>. As of - PHP 5, objects are assigned by reference unless explicitly told - otherwise with the new <link linkend="language.oop5.cloning">clone</link> + up pointing at the same data, and nothing is copied anywhere. + To learn more about references, please read <link + linkend="language.references">References explained</link>. As of + PHP 5, objects are assigned by reference unless explicitly told + otherwise with the new <link linkend="language.oop5.cloning">clone</link> keyword. </para> </sect1> @@ -534,7 +534,7 @@ ?> ]]> </programlisting> - </example> + </example> </para> <para> <example> @@ -940,7 +940,7 @@ <simpara> Comparison operators, as their name implies, allow you to compare two values. You may also be interested in viewing - <link linkend="types.comparisons">the type comparison tables</link>, + <link linkend="types.comparisons">the type comparison tables</link>, as they show examples of various type related comparisons. </simpara> <table> @@ -1033,7 +1033,7 @@ ?> ]]> </programlisting> - </informalexample> + </informalexample> </para> <para> @@ -1123,7 +1123,7 @@ ?> ]]> </programlisting> - </example> + </example> </para> <para> @@ -1156,7 +1156,7 @@ ?> ]]> </programlisting> - </example> + </example> The expression <literal>(expr1) ? (expr2) : (expr3)</literal> evaluates to <replaceable>expr2</replaceable> if <replaceable>expr1</replaceable> evaluates to &true;, and @@ -1236,7 +1236,7 @@ die ("Failed opening file: error was '$php_errormsg'"); // this works for any expression, not just functions: -$value = @$cache[$key]; +$value = @$cache[$key]; // will not issue a notice if the index $key doesn't exist. ?> @@ -1271,7 +1271,7 @@ </para> </warning> </sect1> - + <sect1 xml:id="language.operators.execution"> <title>Execution Operators</title> <para> @@ -1279,8 +1279,8 @@ these are not single-quotes! PHP will attempt to execute the contents of the backticks as a shell command; the output will be returned (i.e., it won't simply be dumped to output; it can be - assigned to a variable). Use of the backtick operator is identical - to <function>shell_exec</function>. + assigned to a variable). Use of the backtick operator is identical + to <function>shell_exec</function>. <informalexample> <programlisting role="php"> <![CDATA[ @@ -1537,12 +1537,12 @@ </informalexample> </para> <para> - See also the manual sections on the - <link linkend="language.types.string">String type</link> and + See also the manual sections on the + <link linkend="language.types.string">String type</link> and <link linkend="ref.strings">String functions</link>. </para> </sect1> - + <sect1 xml:id="language.operators.array"> <title>Array Operators</title> <table> @@ -1592,7 +1592,7 @@ </table> <para> The <literal>+</literal> operator - appends elements of remaining keys from the right handed array to the + appends elements of remaining keys from the right handed array to the left handed, whereas duplicated keys are NOT overwritten. </para> <para> @@ -1659,8 +1659,8 @@ </example> </para> <para> - See also the manual sections on the - <link linkend="language.types.array">Array type</link> and + See also the manual sections on the + <link linkend="language.types.array">Array type</link> and <link linkend="ref.array">Array functions</link>. </para> </sect1> @@ -1855,16 +1855,16 @@ The <literal>instanceof</literal> operator was introduced in PHP 5. Before this time <function>is_a</function> was used but <function>is_a</function> has since been deprecated in favor of - <literal>instanceof</literal>. Note that as of PHP 5.3.0, + <literal>instanceof</literal>. Note that as of PHP 5.3.0, <function>is_a</function> is no longer deprecated. </simpara> <para> - See also <function>get_class</function> and + See also <function>get_class</function> and <function>is_a</function>. </para> </sect1> </chapter> - + <!-- Keep this comment at the end of the file Local variables: mode: sgml

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