Home >Backend Development >PHP Tutorial >Two ** in PHP can directly find the nth power of a number. Why is there still a pow() function?
<code>$a = 2**6; echo $a; $b = pow(2,6); echo $b;</code>
?>
<code>$a = 2**6; echo $a; $b = pow(2,6); echo $b;</code>
?>
You have to look at when this operator was implemented
https://wiki.php.net/rfc/pow-...
Because it needs to be backward compatible