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.
以下代码:
5 ** 2
导致此错误:
PHP Parse error: syntax error, unexpected '*'
我不知道为什么。谁能帮我?
使用pow()功能。获取返回值pow(5,2)
pow()
pow(5,2)
http://www.php.net/manual/pt_BR/function.pow.php
你正在这样做:
当您应该在 PHP 中使用该pow()函数执行此操作时:
echo pow(5,2);