Ask HN:PHP 相较于 C 的优势是什么?

1 分•作者: colrichie•大约 1 小时前
我在 X(原 Twitter)上看到了这样一篇文章:“为什么半个互联网还在使用 PHP。” https://x.com/artillain/status/2113018532980211928 大家怎么看? 这位博主似乎暗示 C 语言的代码通常比 PHP 代码更长。但我认为这一点并不准确。如果 C 语言程序员觉得代码冗长,他们可以轻松地创建具有与 PHP 功能相似粒度的函数。 我认为 PHP 的价值在于其他方面。
查看原文
I saw such a post on X: &quot;Why half the internet still runs PHP.&quot; https:&#x2F;&#x2F;x.com&#x2F;artillain&#x2F;status&#x2F;2113018532980211928 What do you guys think?<p>This guy seems to imply that C code tends to be longer than PHP code. But I don&#x27;t think that point hits the nail on the head. If a C programmer feels the code is unnecessarily long, they can simply create functions with granularity similar to PHP&#x27;s features.<p>I think PHP&#x27;s value lies elsewhere.