How To Prevent Fatal Error Cannot Redeclare Function In PHP
erics, August 8th, 2012
1 2 3 4 5 |
if ( ! function_exists('yourFunctionName') ) { function yourFunctionName() { //your function definition goes here } } |