For a long time I was under the impression that Claude has only a Python sandbox. But today I discovered that it can run literally anything, PHP included. Like, if I ask Write a PHP code that outputs all 2-digit fibonacci numbers, run it and give me the code and the output. before installing PHP, re...
There is a post, Processing One billion rows and it says there is 13 comments. When I opened it 10 hours ago, it said there is 1 comment, but I was unable to see it I left my own comment which I can s
When toying with the code from the recent post on namespaced function calls, I've got strange results: when I removed $result2 = from the namespaced call, its timing became as slow as a global function call. So I wrote a simple PHP script and checked its opcodes <?php namespace SomeNamespace; \s
Unlike the other time, it seems there is no English text available, so just a short recount by yours truly. Although RainLoop web-mail client looks extremely dated, and its Github repo is in the archived state, it was listed as an obscure web-mail option by
This sub made an AI generated low effort list of pathetically trivial statements the all time fourth top post. It means that most of subscribers cannot comprehend anything more complex, let alone some truly interesting or useful content, which gets a few dozen points at max. This is the actual avera...
As far as I can make it, there is no such data type as 'enum'. It's a subtype of the class type. Sort of. Also, it's not only the main thing (the Suit stuff from the man page) being a class, but its cases are also belong to the same class. Suit::class and (Suit::Hearts)::class are both Suit. It's pr...
The twelve-factor app stores config in environment variables I always took [this 12factor recommendation] at face value, which, to me, is actually "editing virtual hosts in Apache or Nginx" (or setting a true env variable any other way). While storing env-sensitive options in a file being just a fal...
Looks like MessageFormatter is a standard part of the intl package, so it's generally available (also, as a part of Symfony Translation Component). And its powers are way beyond of what silly templating which is shown in the examples on the manual page. For example,
A link to the similarly titled article has been posted recently but removed by mods (probably was considered a blogspam or just an automated removal. With our beloved mods you never know, whether there was any reason at all). The article had a good recount of MongoDB downsides, but in the end listed...
It's a really interesting psychological phenomenon, how people perceive the information. When people believe that something must exist, they refuse to acknowledge the fact when something, actually, doesn't. For example, it seems that most people believe that PHP coding standards, [PSR-1](https://www...
I am not the mod and I am genuinely curious, what could be the reason why the help thread always gets downvoted. For example, right now it shows 0 points (50% upvoted).
Recently I've got an idea to compare the popularity of different languages by measuring the number of active (new or updated) questions in Stack Overflow. So I did. The idea is simple, just open the question list by the tag, scroll down and see when the last question was changed. Which means the amo...
There is a fantastic guy that goes under the nickname Dharman on Stack Overflow, thanks to whose persistence and effort it was made possible. For decades the PHP manual featured ridiculous and noobish way to check for errors, that notorious and unprofessional if ($mysqli->connect_error) { die('Conne...
Reddit is a great platform to get in touch with PHP community, so I want to measure the popularity of PHP static analyzers. I added to the list all analyzers known to me, but if you are using something else, please mention it in the comments. Sadly, but as far as I can see, Reddit doesn't allow mult...
Recently I convinced the CEO and CTO of our company that it would be a good move to support the development of tools we are using for free. So I started to search but was rather disappointed. For example, it seems that Pateron search sucks and I can get only Doctrine from there. All right I can also...