Toot

Written by dseguy on 2025-01-14 at 16:51

Two things that surprised me today, with static.

First, it looks like a 'static' typed property, until I read the default value. It took me a while to figure out.

Secondly, static properties may be inherited, or be distinct from the parent: redefine it in the child, and that segregate them. 😮

[#]phptip #phptrick

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

=> View attached media

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

Mentions

Tags

=> View phptip tag | View phptrick tag

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

This content has been proxied by September (ba2dc).