Reputation: 4798
I have declared a function log()
just once (according to me) in a file function.php and the file is included using require_once
. So why I am getting this error ?
Upvotes: 0
Views: 50
Reputation: 239501
PHP already has a built-in log()
function, for finding the natural logarithm of a number.
You cannot define new functions with the same name as built-in functions. You'll have to call your function something else.
Upvotes: 8