3 ms·
But how much PHP code does exist, which does not also produce HTML? I think that's the whole point of most PHP code.
by 1718627440 1y ago
But how much PHP code does exist, which does not also produce HTML? I think that's the whole point of most PHP code.
- makeitdouble 1y agoAn 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.
- phplovesong 1y agoProbably very little. Its either json or html. Most PHP oit there is actually wordpress.