Odd ball question, but I'm stuck with an old function library that has too still be used. My question, is it possible to have a function with two names? ie:
function fReturnFormatedDateOrNull($string, $switch=1), fDoN ($string, $switch=1) {
gutshere
}
I hate the name space / length of the first name, but I need to keep the function. I would like to use a shorthand name (fDoN) going forward. Or am I stuck creating the new function and calling the old one?
Thanks for your time.
Simply Stated, No
However you can do this to make it easier...
function fReturnFormatedDateOrNull($string, $switch=1) {
gutshere
}
function fDoN($string, $switch=1) {
fReturnFormatedDateOrNull($string,$switch);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With