How To Prevent Fatal Error Cannot Redeclare Function In PHP

1 2 3 4 5 |
if ( ! function_exists('yourFunctionName') ) { function yourFunctionName() { //your function definition goes here } } |
![]() |
1 2 3 4 5 |
if ( ! function_exists('yourFunctionName') ) { function yourFunctionName() { //your function definition goes here } } |
Leave Your Comment
All fields marked with "*" are required.