Toot

Written by dseguy on 2025-01-03 at 17:43

So, #PHP has fluent interfaces, but it also can do fluent functions: functions that can be chain called.

As usual, it works but it is a tad cumbersome.

[#]phptip #phptrick

https://php-tips.readthedocs.io/en/latest/tips/fluent_function.html

=> View attached media

=> More informations about this toot | View the thread | More toots from dseguy@phpc.social

Mentions

Tags

=> View php tag | View phptip tag | View phptrick tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113765659696481398
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
267.735806 milliseconds
Gemini-to-HTML Time
0.488351 milliseconds

This content has been proxied by September (ba2dc).