Post #3683565
2026-07-08 23:47 UTC
@Girgias@phpc.social I have been using PHP for as long as you have been alive and only JUST learned this past year (from you, possibly) that this bullshirt is valid syntax (but deprecated as of 8.5). https://3v4l.org/HVvWL
This old gal can still surprise us.
Replies (2)
-
@GuillaumeRossolini@infosec.exchange 2026-07-09 00:11
@saramg@fosstodon.org I’ve seen a variation of this with switch(true) so that people can write any expression for every case 🤷♀️ @Girgias@phpc.social
-
@Exakat@phpc.social 2026-07-09 06:10
@saramg@fosstodon.org @Girgias@phpc.social and have you ever tried to add a lone semi-colon between the { and the 'case'? https://3v4l.org/n9S9r/rfc#vgit.master I mean 2 semi colons, and #PHP gets mad at you, but one is fine. none is fine too... mind you.