Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 2 的数幂,例如:
2^n = 16
我们怎样才能n在php中找到呢?
n
谢谢
log()接受一个基本参数。
log()
log(16, 2)是4。
log(16, 2)
4
<?php $x = 1024; $num = 2; $y = log($x, $num); echo $y; ?>
给出 y=10