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
=> More informations about this toot | View the thread | More toots from dseguy@phpc.social
=> View php tag | View phptip tag | View phptrick tag This content has been proxied by September (ba2dc).Proxy Information
text/gemini