Possible to have a php function with two names?
function, php
Solution
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);
}
Problem
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.