dseguy
dseguy@phpc.social
<p>Static code analysis maestro <span class="h-card" translate="no"><a href="https://phpc.social/@Exakat" class="u-url mention">@<span>Exakat</span></a></span> <a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="tag">#<span>PHP</span></a> expert elePHPant breeder. <a href="https://linktr.ee/exakat" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="">linktr.ee/exakat</span><span class="invisible"></span></a></p>
Posts
-
Post #3904678
@vohanj@phpc.social I did leave some bait in this picture.
-
Post #3891075
Pop quizz #PHP on Friday evening: How can you remove an argument between the parent class and the child class? Is that an impossible task? #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/less_arguments.html
-
Post #3883206
#PHP delivers
-
Post #3883205
From #mastodon you can hop to #lemmy and get daily news about #PHP https://lemmy.world/c/php It&#39;s not much, but it&#39;s honest work.
-
Post #3708859
#PHP 8.4 introduced array_find() to look for a value in an array, and also, its cousin, array_find_key(), which returns the key where to find that value. The second got less attention, but is arguably more useful. #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tipSection.html
-
Post #3499185
So, it seems that it is possible to paint oneself in a corner and write an unreachable method. How would you call A::foo() in this code below? Come on, #PHP, there must be something here. #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/unreachable_method.html
-
Post #3494327
A manually curated list of multi-language applications that also supports #PHP https://www.exakat.io/also-php-a-curated-watchlist-for-the-php-ecosystem/
-
Post #1334678
@afup il y a deux ans, j ai eu cet elePHPant blanc durant le forum. Je cherche l auteur de cette merveille, qui a maintenant une admiratrice et un petit frère! @Coriography
-
Post #1039615
#PHP&#39;s NAN is 0 as an integer, &#39;NAN&#39; as a string and not comparable with itself. Also, there are now warning when using them, so no one can get hurt by this. #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/compare_nan.html
-
Post #1039614
#[ReturnTypeWillChange] works on native #PHP methods and also on custom ones. #phptrick #phptip https://php-tips.readthedocs.io/en/latest/tips/returntypewillchange_for_all.html
-
Post #1039613
preg_split() splits #PHP strings with regexes, captures the separators and can handle an empty regex. You don&#39;t need that everyday, but when you do, #PHP has it! #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/preg_split.html
-
Post #1039612
Strategies to rename a parameter in a #PHP method https://www.exakat.io/renaming-parameters-in-a-method/
-
Post #1039611
#PHP defined() in action: there are many aspects when checking for a constant existence. #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/defined.html
-
Post #1039610
New word: zombie closure That is when you put $this in a static closure, you can run the #PHP code but you can&#39;t call it. Just a reminder about static arrow functions. #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/static_arrow_function.html
-
Post #723500
It is Friday, so why not cram as many #PHP operators in one single operation, and make it work? Look at this beauty! Could you make it run? #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/allDereferencements.html
-
Post #723498
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! https://eventy.io/events/q8lmw0v4 #PHP #PHP85 #Community #Rotterdam #Developers
-
Post #694694
Would it be cool to have a #PHP ::parent operator, like we have the ::class operator Well, turns out we can. #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/parent_operator.html
-
Post #694692
#PHP puzzle of the day: can you make Chidren::foo() call GrandParents::foo() ? Think about it, and then, click below for the solution(s). #phptip #phptrick https://www.exakat.io/calling-all-ancestors/
-
Post #694691
I don’t use ai generated image but when i do, it shows #dpc 😂
-
Post #694690
Quite a nice take on the current situation. https://blog.lmorchard.com/2026/03/11/grief-and-the-ai-split/
-
Post #694688
Enumerations are backed by strings, they work with in_array(), but not with array_unique() Well, at least, not directly. Also, did you know Enum::cases() ? #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/array_unique_and_enum.html
-
Post #674057
Old elePHPant meeting future delta robot elePHPant #dpc
-
Post #585058
I just ran into PHPoC, aka #PHP on a Chip! The company provides IoT solutions, with components programmables with #PHP! The website also is made with #PHP, but of course! https://www.phpoc.com/
-
Post #557792
#PHP, in French, it means 'Protection des Hautes Personnalités' : Protection of high-ranking officers. Straight from the government web site. https://www.gendarmerie.interieur.gouv.fr/gendinfo/dossiers/gign-3.0/les-php-protecteurs-de-hautes-personnalites
-
Post #351359
#PHP numeric separator works well on integer, floats and also hexadecimals, octals and ... binary. And most useful in the latter, right? 0b1111_00_111_101_111 #phptip #phptrick https://php-tips.readthedocs.io/en/latest/tips/hexadecimal_separator.html