Is there an alternative to anonymous functions in PHP versions prior to 5.3.0?
There is create_function , but this is usually not recommended. If you use OOP, you better define a one-time private member for use with a callback.
Yes, create_function()
create_function()
There are two options.
First you need to create a function inside the function. Unfortunately, it will pollute the global namespace.
The second choice is to use create_function .
Source: https://habr.com/ru/post/1764362/More articles:Java Box (BoxLayout) doesn't work as expected - javaDesign 360-degree video viewer - interactiveHow does enterprise search display results for the user and hide unauthorized results? - search-enginegdb for debugging double free, not detected valgrind (?) - c ++Loop through NSArray objectAtIndex - objectΠ‘Π°ΠΌΡΠΉ ΠΎΠ±ΡΡΠ½ΡΠΉ ΠΌΠ΅ΡΠΎΠ΄ Ρ ΡΠ°Π½Π΅Π½ΠΈΡ Π΄Π°Π½Π½ΡΡ XYZ Π² MATLAB - matlabDrupal: "previous and next" links in each node? - drupalProblem validation problem model ASP MVC DateTime - datetimePerl metaprogramming: when is it unsafe to use quotemeta for REPLACEMENT s ///? - regexΠΠ°ΠΊΠΎΠ΅ ΠΏΡΠΎΡΡΠ΅ΠΉΡΠ΅Π΅ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ CSS, ΠΊΠΎΡΠΎΡΠΎΠ΅ ΠΌΠΎΠΆΠ΅Ρ ΠΏΡΠΈΠ²Π΅ΡΡΠΈ ΠΊ Π΄ΡΠ°ΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈΠΌ (Π½Π΅ΡΠ°Π·ΡΡΡΠ°ΡΡΠΈΠΌ) ΡΡΡΠ΅ΡΠΈΡΠ΅ΡΠΊΠΈΠΌ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΡΠΌ Π² Π²Π΅Π±-Π΄ΠΈΠ·Π°ΠΉΠ½Π΅? - cssAll Articles