Now, we need more details. What, where, how?
Blog post?
@dseguy.bsky.social
Code quality fanatic, static analysis expert @exakat, elephpant breeder, husband, father, speaker!
Now, we need more details. What, where, how?
Blog post?
Illustration de l'article
L'EU Open Source Policy Summit 2026 se tiendra le 30 janvier à Bruxelles et en ligne pour échanger sur le rôle de l’Open Source dans la résilience numérique et la compétitivité européenne.
👉 data.europa.eu/en/ne...
<?php $string = '123a'; $integer = -$string; // warning!
What if you want to convert a #PHP string to the opposite number ? Can you cast (int) and use minus?
Well, can you?
#phptip #phptrick
php-tips.readthedocs.io/en/latest/ti...
<?php function foo() { print_r(func_get_args()); } $array = [1,2,3]; // Not possible // cannot use positional argument after unpacking //foo(...$array, ...$array, 4); foo(...$array, ...$array, ...[4]);
So, ...[4] means unpacking a single value from a #PHP array.
This basically means reading the value itself.
Unless it is useful sometimes...
#phptip #phptrick
php-tips.readthedocs.io/en/latest/ti...
Closure, constant, #PHP 8.5, parenthesis, ants and cast: what could go wrong, right?
php-tips.readthedocs.io/en/latest/ti...
#phptip #phptrick
TIL that it is possible to use cast, like (int) or (string) with constants, since #PHP 8.5.
#phptip #phptrick
php-tips.readthedocs.io/en/latest/ti...
Je serai de passage à l' @afup.org Limoges, jeudi 29 janvier 2026.
Rendez-vous chez OD&B, pour améliorer son code aujourd'hui et être prêt pour #PHP9 demain!
Les elePHPants sont les bienvenus!
www.meetup.com/afup-limoges...
Are telling everyone that I am more than 100 years old? Ssshhhhh!
16.01.2026 08:39 — 👍 0 🔁 0 💬 0 📌 0The global keyword imports variables from the outside, and overwrites the local value. Beware, when using it.
#phptip #phptrick
php-tips.readthedocs.io/en/latest/ti...
Thanks for your work!
15.01.2026 14:07 — 👍 1 🔁 0 💬 0 📌 0I just started the vote on my latest #PHP RFC to improve pack() and unpack() functions. It targets the next version, likely 8.6 as I'm writing this.
Fingers crossed! 🤞
wiki.php.net/rfc/pack-unp...
Mea culpa, this is too early !
dunglas.dev/2025/12/merr...
ElePHPant alert : Le Monstre, from #frankenphp is available on the shop. Normal or big.
lemonstre.frankenphp.dev
Converting a string to an int, without a warning.
A PHP 8.5 challenge.
#phptip #phptrick
www.exakat.io/convert-a-st...
Apéro PHP mercredi 17 décembre dès 18h chez Hopi
Devs de Lille et des environs, rejoignez la communauté ce soir au Bar Hôpi pour un dernier verre avec l'AFUP Hauts-de-France avant la nouvelle année ! Il est encore temps de vous inscrire pour une soirée en bonne compagnie.
buff.ly/L7yJmWw
<?php class X { // Some magic happen here } X::foo(); (new x)->foo();
Can a #PHP class have two methods with the same name?
Not with signature overloading, a classic feature, right?
But rather one method static and the other one non-static?
#phptip #phptrick
php-tips.readthedocs.io/en/latest/ti...
C'est le deuxième jour de @osxp2023.bsky.social et on parle de tout #php #drupal #firefox #commonvoire... et vous me trouverez sur le stand @drupal.fr @mozilla-fr.bsky.social au village associatif
11.12.2025 05:39 — 👍 2 🔁 3 💬 0 📌 0<?php echo intval('1AZ') .PHP_EOL; // 1 echo intval('1AZ', 11).PHP_EOL; // 21 echo intval('1AZ', 21).PHP_EOL; // 31 echo intval('1AZ', 36).PHP_EOL; // 1691 echo intval('1AZ', 37).PHP_EOL; // 0 echo intval( 123, 11).PHP_EOL; // 123 echo intval('123', 11).PHP_EOL; // 246
Do you think that intval() is a boring #PHP native function that turns string into integers?
Well, it does, but it is not boring. Far from it!
php-tips.readthedocs.io/en/latest/ti...
#phptip #phptrick
Interesting #PHP news and articles on @dailydev.bsky.social : the PHPDev squad.
See you there!
app.daily.dev/squads/phpdev
I think that an article about 'How I would do it differently 10 years later' would be great 😀
07.12.2025 20:07 — 👍 0 🔁 0 💬 0 📌 0Tu es un sandwich?
04.12.2025 05:37 — 👍 0 🔁 0 💬 0 📌 0A PHP elephant, near the iconic Erasmus bridge, in Rotterdam
November 20th, 2025: PHP 8.5 arrives! 🐘
We’re throwing a release party at PHP Rotterdam, and you’re invited!
Expect PHPun, knowledge-sharing, and great company at Last Mile Solutions!
eventy.io/events/q8lmw...
#PHP #PHP85 #Community #Rotterdam #Developers
Cette année votre antenne préférée (nous 🤫) vous propose un AFUP Day à Bordeaux !
What's next?
Les CFPs sont ouverts jusqu'au 10 Novembre 2025 par ici 👉 event.afup.org
Et la billetterie est ouverte aussi par ici 👉 event.afup.org
⚠ Les tarifs "les yeux fermés" sont limités
See you there!
I have it, let me go home first and we sort out the next leg of the journey
29.10.2025 17:23 — 👍 3 🔁 0 💬 1 📌 0Ok, seen how many?
29.10.2025 15:21 — 👍 0 🔁 0 💬 1 📌 0I can get phpstan elephpants at #IPC Munich. Do you want one too?
Send me a DM to book one (30 e, delivery by CPS)
Deadline : Wednesday 29th October.
I had the opportunity to chat with @asgrim.dev yesterday about PHP Pie - the new installer for PHP extensions, intended to replace PECL.
Full interview dropping tomorrow.
It is easy to create a map from a list of object, using #PHP array_column() and the second argument null.
That null represents the whole object, and the third argument is the indexing key.
array_column($list_of_objects, null, 'id');
#phptip #phptrick
php-tips.readthedocs.io/en/latest/ti...
Indeed, clone happens AFTER the ->, so the code is cloning the result of the setter, which happens to be the original object itself.
A case of left associativity.
clone $object->property clones the property, not the object.
(clone $object)->property
Same for new
3v4l.org/UHrBS
Also, yes, some precedences are missing in that table. new and clone, for example.
06.10.2025 17:34 — 👍 0 🔁 0 💬 1 📌 0