note 114389 added to function.pow
| From: | scott at arciszewski dot me | Date: | Fri, 14 Feb 2014 15:24:41 +0000 |
| Subject: | note 114389 added to function.pow | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198512@lists.php.net to get a copy of this message | ||
As of PHP 5.6.0alpha2, there is now an exponentiation operator. If this is kept in the final
release, it may be worth noting here.
<?php
// These two will be equivalent as of PHP 5.6.0
$x = $y ** 2;
$x = pow($y, 2);
?>
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/function.pow.php
Edit -- https://master.php.net/note/edit/114389
Del: integrated -- https://master.php.net/note/delete/114389/integrated
Del: useless -- https://master.php.net/note/delete/114389/useless
Del: bad code -- https://master.php.net/note/delete/114389/bad+code
Del: spam -- https://master.php.net/note/delete/114389/spam
Del: non-english -- https://master.php.net/note/delete/114389/non-english
Del: in docs -- https://master.php.net/note/delete/114389/in+docs
Del: other reasons-- https://master.php.net/note/delete/114389
Reject -- https://master.php.net/note/reject/114389
Search -- https://master.php.net/manage/user-notes.php