Hi all,
I've just moved my coding environment to a new server which is running PHP 5 (previous server ran 4.x), and my current project includes a user-defined function date_format().
As it turns out, PHP 5 now has a date_format() function of its own and all my calls to the original user function are now going to PHP's built-in function, thus breaking my code.
I'm not holding out much hope for this, but can anyone suggest a way that I could have my code use the user function instead of the built-in without renaming the user function and editing all the calls?
I've just moved my coding environment to a new server which is running PHP 5 (previous server ran 4.x), and my current project includes a user-defined function date_format().
As it turns out, PHP 5 now has a date_format() function of its own and all my calls to the original user function are now going to PHP's built-in function, thus breaking my code.
I'm not holding out much hope for this, but can anyone suggest a way that I could have my code use the user function instead of the built-in without renaming the user function and editing all the calls?