Yousuf Memon
Yousuf Memon

Reputation: 4798

Function redeclare fatal error?

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

Answers (1)

user229044
user229044

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

Related Questions