Let’s get straight to the point. ** PHP is a weird language. It's neither fast nor syntactically beautiful. Good software development practices are also not followed. ** But I still use it to develop a lot of software. Then the question is obvious. Why are you still using PHP today?
PHP is everywhere
There are many reasons to understand and love PHP, which may be the most powerful and effective The reason is: It can be used and run anywhere on the network. If you look carefully, you can probably buy a hosting account for as little as $3 per month that can run Python or Ruby web applications. (Recommended learning: PHP video tutorial)
But it can definitely run PHP. This means you can always rely on PHP.
Because PHP can run anywhere and it is easy to use, many very popular software are written in PHP.
WordPress is the most influential and familiar example to me, besides, tools like Joomla, Drupal, Magento, ExpressionEngine, vBulletin (yes, it still exists), MediaWiki, etc., they are all there PHP is running on the server.
Not only that, there are countless PHP application frameworks, such as: Symfony, Zend, Laravel, Aura, CakePHP, Yii and even the ancient CodeIgnitor framework.
Of course you can make a list of web frameworks of similar length for any other language. For example, common web languages like Python, Ruby, or Node/JavaScript, you can even accumulate a numerical competition list to compare with PHP. But the number of websites running PHP is overwhelming.
WordPress proudly claims to have 30% of users on the internet. You don't even need to believe this statement to realize that many Internet applications must use PHP even if this statement is even conceivably true.
Having powerful object-oriented package management is now a standard in PHP
Composer is a plus for PHP.
In the development of PHP, some weird things are often released. The most famous example is the introduction of the goto statement in PHP 5.3 (widely regarded as the first modern version of PHP).
The rapid development of PHP
Through these facts, it is found that PHP is developing in an interesting way. It is gradually becoming a full-featured object-oriented language like Java (for better or worse), and is providing simple abstractions for functional programming, which can be said to be the current hot spot.
The above is the detailed content of Is php still useful?. For more information, please follow other related articles on the PHP Chinese website!