mastodonien.de

phpc.social

Zeitpunkt              Nutzer    Delta   Tröts        TNR     Titel                     Version  maxTL
Di 30.07.2024 00:01:09     4.718      +1      262.617    55,7 PHP Community on Mastodon 4.2.10     500
Mo 29.07.2024 00:01:13     4.717      +2      262.397    55,6 PHP Community on Mastodon 4.2.10     500
So 28.07.2024 00:01:08     4.715      +1      262.162    55,6 PHP Community on Mastodon 4.2.10     500
Sa 27.07.2024 00:01:13     4.714      +1      261.889    55,6 PHP Community on Mastodon 4.2.10     500
Fr 26.07.2024 00:00:49     4.713      -1      261.554    55,5 PHP Community on Mastodon 4.2.10     500
Do 25.07.2024 00:00:04     4.714      +1      261.235    55,4 PHP Community on Mastodon 4.2.10     500
Mi 24.07.2024 00:00:47     4.713      +1      260.887    55,4 PHP Community on Mastodon 4.2.10     500
Di 23.07.2024 00:01:08     4.712       0      260.567    55,3 PHP Community on Mastodon 4.2.10     500
Mo 22.07.2024 00:01:31     4.712      +1      260.315    55,2 PHP Community on Mastodon 4.2.10     500
So 21.07.2024 00:01:18     4.711       0      260.067    55,2 PHP Community on Mastodon 4.2.10     500

Di 30.07.2024 00:40

Thinking on %= more, I think this behaviors make some sense:

$str = ‘Foo %s: %d’;
$str %= [$foo, $bar];

And you can of course concat without %=

$str = 'Foo’;
$str .= ‘ %s: %d' % [$foo, $bar];

But there's no sane way to combine the two:

$str = 'Foo %s’;
if (cond) {
$str %= [$foo] . ': %d' % [$bar]
}

This _technically_ makes sense I think? Read it like:

$str = ($str % [$foo]) . (‘: %d' % [$bar])

I think the best practice would be:

$str = 'Foo %s’
$str .= ‘: %d’;

$str %= [$foo, $bar];

[Öffentlich] Antw.: 0 Wtrl.: 0 Fav.: 0 · via Mastodon for iOS

Antw. · Weiterl. · Fav. · Lesez. · Pin · Stumm · Löschen