svn: /phpdoc/en/trunk/ language/operators.xml reference/math/functions/pow.xml

From: Date: Sun, 01 Jun 2014 22:43:11 +0000
Subject: svn: /phpdoc/en/trunk/ language/operators.xml reference/math/functions/pow.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12514@lists.php.net to get a copy of this message
aharvey Sun, 01 Jun 2014 22:43:11 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=333679 Log: Manual ** 5.6. (Or, in other words, documented the new ** operator.) Changed paths: U phpdoc/en/trunk/language/operators.xml U phpdoc/en/trunk/reference/math/functions/pow.xml Modified: phpdoc/en/trunk/language/operators.xml =================================================================== --- phpdoc/en/trunk/language/operators.xml 2014-06-01 22:36:06 UTC (rev 333678) +++ phpdoc/en/trunk/language/operators.xml 2014-06-01 22:43:11 UTC (rev 333679) @@ -91,6 +91,11 @@ <entry><function>array</function></entry> </row> <row> + <entry>left</entry> + <entry><literal>**</literal></entry> + <entry><link linkend="language.operators.arithmetic">arithmetic</link></entry> + </row> + <row> <entry>right</entry> <entry> <literal>++</literal> @@ -370,6 +375,11 @@ <entry>Modulus</entry> <entry>Remainder of <varname>$a</varname> divided by <varname>$b</varname>.</entry> </row> + <row> + <entry>$a ** $b</entry> + <entry>Exponentiation</entry> + <entry>Result of raising <varname>$a</varname> to the <varname>$b</varname>'th power. Introduced in PHP 5.6.</entry> + </row> </tbody> </tgroup> </table> Modified: phpdoc/en/trunk/reference/math/functions/pow.xml =================================================================== --- phpdoc/en/trunk/reference/math/functions/pow.xml 2014-06-01 22:36:06 UTC (rev 333678) +++ phpdoc/en/trunk/reference/math/functions/pow.xml 2014-06-01 22:43:11 UTC (rev 333679) @@ -16,6 +16,12 @@ Returns <parameter>base</parameter> raised to the power of <parameter>exp</parameter>. </para> + <note> + <para> + In PHP 5.6 onwards, you may prefer to use the + <link linkend="language.operators.arithmetic">**</link> operator. + </para> + </note> </refsect1> <refsect1 role="parameters"> &reftitle.parameters;

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