How To Prevent Fatal Error Cannot Redeclare Function In PHP

Author: , August 8th, 2012

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 } }