Do you know what this PHP code does? 🤔
@christophrumpel23K followers
38,415 views
10 Comments
Comments from the original post on X (Twitter)

@danielhe4rtless
I liked the idea and the feature, probably I'll need more examples to understand ways to apply.
3 likes

@Jonas_S9R
I'm usually well aware of new features in PHP but this one slipped past me somehow 🤔 thanks for this video!
2 likes

@CodingWisely
I don’t get it. What would be real life not count() +1 example of use?
1 like

@christophrumpel
Callables are useful to store code that you want to run "later". The "first-class callable" syntax is a simple way to create a callable from a given function. In my example we create a callable of the "render" function of a class. We don't run "render" now but later.
1 like

@abdoulmouctard
Amazing feature 🤩
1 like

@christophrumpel
Indeed 👏
1 like

@grEvenX
So nice when working with collection methods!
1 like

@christophrumpel
I am collecting more real-world examples. Do you have one?

@michabbb
that caption-style is better 👍
1 like

@christophrumpel
Thanks. This feels like a "middleground" now. But if Twitter would add captions like YouTube, I could get rid of them completely here on Twitter which would be better. I agree.
1 like
