Earlier quoted context omitted.
If you start typing `html` trying to get to `html_entity_encode` you'll notice a dropdown which will show you the right method to use. Unless you use notepad.exe or something. https://i.imgur.com/YYXkkNS.png
I see, but htmlentities is just an example. It's a coincidence that they both start with 'html'...
Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster
141–144 of 144 posts
Re: Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster
#142Earlier quoted context omitted.
1) php doesn't have to setup everything on every request - opcode caches, process pooling et al exist 2) the benefit of php over java is that php is going to run everywhere with no effort, and running that same java based website/service is going to start with some doc on installing tomcat or similar, which will devolve into chaos as you start working with ssl certs or shared servers
Bootstrapping a project with Spring Boot is 10x easier than dealing with some modern PHP framework's setup and nginx stuff.
Re: Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster
#143Earlier quoted context omitted.
With PHP you also need to implement a webserver (Apache), so you're one-liner is also actually not a one-liner at all. Also, pick the right tool for the right job. Who writes code these days that silently sit still for a decade? Hardly anyone. And even if you do, I don't think Python or Node will suddenly stop working (as you're implying).
>With PHP you also need to implement a webserver (Apache), so you're one-liner is also actually not a one-liner at all With the "https everywhere" movement, the same is practically true for node. You will likely be configuring some outside proxy/webserver.
Re: Benchmarks of PHP 7.2 Beta: PHP Is Still Getting Faster
#144Earlier quoted context omitted.
>There are almost always better tools for the job than PHP, like Django, Rails, Go's net/http, etc. depending on the kind of thing you're writing. Except for the time when you are 10 times more proficient in PHP but none of those languages. Then no, none of those languages are better for the job.
That sounds more like all you know how to use is a hammer, so everything is a nail.