输入banner图图片脚本导航/分类

a^x=b,a,b为已知常数,求x,该怎么解决

a^x = b, a,b为已知常数,求x
如题。
请问php中如何写啊
------解决方案--------------------
$x = log(b, a);