PHP Array Destructuring Hack
Wait for it! PHP array destructuring lets you swap variables in one line. See [$a, $b] = [$b, $a]. One line, huge impact!
#php #phptricks #codingtips #programmingtutorial #phparraydestructuring #listassignment #php7.1 #phpquiz #codingchallenge #phpshorts #phpmodern #variableassignment
https://www.youtube.com/watch?v=BCKs27NzXM4
I have just published a post on how to easily export whole @bookstack content for use with NotebookLM (via Google Drive).
https://ambience.sk/export-bookstack-wiki-as-markdown-use-with-notebooklm-via-google-drive/
I have decided to skip API and just use direct database access cutting time to export from about 8 minutes to 30 seconds.
#llm #notebooklm #bookstack #chatbots #php #webdev
Simplifier vos objets immuables avec PHP 8.5 https://www.jdecool.fr/blog/2026/02/16/simplifier-vos-objets-immuables-avec-php-8-5.html #php
I'm not seeing the value of the `#[Override]` attribute.
#phpstan über das alte System laufen lassen. Alte Libs wie #phpids sollte ich dann wohl doch noch ersetzen oder standalone auf PHP8 migrieren.
I will be at @dutchphpconference this year again. This time not as a sponsor but as a visitor. Who will be there? If you want to chat with me about @phpdoc, #php-fig or just want to say hi. Send me a message and we will make sure we have a moment to talk.
Looking forward to seeing you there!
PHP Empty String vs Zero
Watch this! PHP treats empty string and zero as falsy. See empty('') vs empty(0) vs empty('0'). The differences are INSANE!
#php #phptricks #codingtips #programmingtutorial #phpempty #falsyvalues #phpfunctions #phpquiz #codingchallenge #phpshorts #phpvalidation #truthyfalsy
https://www.youtube.com/watch?v=Z5z7MPhN07Y
They say it's useless to have an interface if you only have one implementation, but someone in my team managed to make the only implementation no longer compliant with the interface. Bravo!
(The trick they used is that it's perfectly legal to implement an interface method and add additional arguments to it.)
#php #rant
If you use multiple database connections in Laravel, there's a subtle trap where eager loading can query the wrong database. Here's why it happens and the simple fix. #php #laravel https://masteringlaravel.io/daily/2026-02-16-eager-loading-can-query-the-wrong-database
PHP Arrays: Why They Still Matter
🔹 Simple = Easy to read
🔹 Flexible = Adapts as your needs grow
🔹 Powerful = Often enough, without over-engineering
Sometimes, arrays are all you need to move data cleanly.
Which do you use most: arrays or DTOs?
🔗 LINK: https://www.phpwayoflife.com/en/manifesto#arrays
#PHP #Backend #Coding #CleanCode #SoftwareDesign

this comment in doesn't make any sense... oh no. look at the date from git blame.
this is how well the php engine is documented

Des générations et des technologies… et une histoire qui se répète
https://blog.pascal-martin.fr/post/generations-et-technologies-histoire-se-repete/