How To Prevent Fatal Error Cannot Redeclare Function In PHP

Published Date Author: , Posted August 8th, 2012 at 1:54:50pm
1
2
3
4
5
if ( ! function_exists('yourFunctionName') ) {
  function yourFunctionName() {
    //your function definition goes here
  }
}
if ( ! function_exists('yourFunctionName') ) {
  function yourFunctionName() {
    //your function definition goes here
  }
}

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.