If you are getting error “PHP Fatal error: Cannot redeclare” function the it means you are declaring same function multiple times in your code.
There can ne three reasons if you are getting error:
There can ne three reasons if you are getting error:
- Using same function in 2 files.
- If you are define function in two places within same file.
- Two times files are included which has same function.