PHP: User-defined functions - Manual - PHP: Hypertext Preprocessor
Please be advised that the code block defining the function, within the function_exists() call, has to be executed for the function to get defined, whereas this is not the case for regular, unenclosed functions. Meaning, if you write code like this:...