The following code:
5 ** 2
results in this error:
PHP Parse error: syntax error, unexpected '*'
And I have no idea why. Can anyone help me?
The following code:
5 ** 2
results in this error:
PHP Parse error: syntax error, unexpected '*'
And I have no idea why. Can anyone help me?
You are doing this:
5 ** 2
When you should be doing this in PHP using the pow()
function:
echo pow(5,2);