Can I do something like this?
$arrayFn[1] = function fnName(){ echo "test"; } $arrayFn[1];
Anonymous functions cannot have a name:
$arrayFn[1] = function (){ echo "test"; }; $arrayFn[1](); // run it!
$arrayFn[1] = function (){ echo "test"; }; $arrayFn[1]();
Source: https://habr.com/ru/post/1532051/More articles:Custom wrong cursor position - androidUpload file to amazon S3 using PHP SDK - phpIncorrect position in user adapter - javaSubmit form with Go button in Safari for iOS - htmlwrong cursor adapter location - androidIgnoring the prohibited property IISMAJORVERSION and "EnableUserControl"? - windows-installerWhy does the compiler not see the default value? - c ++pixel size of leaf, depending on zoom level - leafletMatching patterns to a string containing dots - javaAbstraction for throttling API calls - haskellAll Articles