Skip navigation
Do you know what this PHP code does? 🤔
0:00 / 0:59

Do you know what this PHP code does? 🤔

Christoph Rumpel 🤠

@christophrumpel23K followers

Visit on X
199 likesDownloadOriginal post

38,415 views

Do you know what this PHP code does? 🤔

10 Comments

Comments from the original post on X (Twitter)

  • Daniel Reis 🥑's profile picture

    @danielhe4rtless

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

    3 likes

  • Jonas Schwendener's profile picture

    @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

  • Vlad@Coding Wisely(Taskavel.com)'s profile picture

    @CodingWisely

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

    1 like

  • Christoph Rumpel 🤠's profile picture

    @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

  • a's profile picture

    @abdoulmouctard

    Amazing feature 🤩

    1 like

  • Christoph Rumpel 🤠's profile picture

    @christophrumpel

    Indeed 👏

    1 like

  • Even André Fiskvik's profile picture

    @grEvenX

    So nice when working with collection methods!

    1 like

  • Christoph Rumpel 🤠's profile picture

    @christophrumpel

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

  • Micha(el) Bladowski 🇩🇪 🇺🇦's profile picture

    @michabbb

    that caption-style is better 👍

    1 like

  • Christoph Rumpel 🤠's profile picture

    @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