News for hackers. Stuff that matters.
Re:The Top Programming Languages 2025 by 1718627440 on Wednesday September 24, 2025 @11:48AM (#45362020)
But how much PHP code does exist, which does not also produce HTML? I think that's the whole point of most PHP code.
Re:The Top Programming Languages 2025 by makeitdouble on Wednesday September 24, 2025 @12:32PM (#45362707)
An awful lot.

Imagine a PHP backend providing an API for an app. The only HTML ever produced will be the admin backend, and perhaps auth forms for special cases. The surface of the API will produce objects serialized to JSON, and the vast majority of the PHP will be business logic to talk to external services and do what the service is paid for.

Some might not like the language, but whole businesses will run on PHP, with a dedicated react or next.js frontend that only talks to the PHP via API.

Re:The Top Programming Languages 2025 by phplovesong on Wednesday September 24, 2025 @01:38PM (#45363540)
Probably very little. Its either json or html. Most PHP oit there is actually wordpress.