Posts
Clarification of syntax The introduction of the "callable arrays" mechanism, mentioned earlier, made it possible to interpret the syntax in the question. The ["a", "b"]() means that PHP tries to call the method b from the class a . However, if a is not an existing class, PHP tries to interpret a as a class name and attempts to load it. If it's ...
Callable Arrays in PHP since 7.x
Dec 11, 2024
1 view
View all posts