PHP is much better than you think

Source: Internet
Author: User
Tags drupal
Rants about PHP is everywhere, and they even come from smart guys. When Jeff Atwood wrote yet another rant on PHP, it made me think about thegood parts of PHP.

Complaints about PHP are everywhere, and they sometimes come from some clever people. When Jeff Atwood wrote about the alternative to PHP, it reminded me of the good aspects of PHP.

The biggest problem of these rants is, they come from Peoplestuck in the old days of PHP. They either don ' t care or they don ' t want Toadmit that PHP actually evolves at a very fast pace, both at the language leve Lbut also at the community level. In fact, it evolves much faster than any otherlanguage or web platform. It has not always been the case and the last 5 yearshave been a amazing journey for PHP.

The biggest problem with these complaints is that their memories still linger over the memories of PHP's past. They neither care nor want to admit that PHP is actually developing very quickly, both at the language level and in community building. In fact, it grows faster than any other language or web platform. Although not always the case, but the past 5 years for PHP is a glorious 5 years

Before talking about the amazing things the PHP community hasachieved recently and let's has a look at some interesting numb Ers:php is Usedby 77.9% of all the websites whose Server-side programming language is known. WordPress is used by 16.6% of all the websites in the world. If you had a lookat the top three cmses, for the websites so use a monitored contentmanagement system:wordpress are fir St with 54.3%, Joomla are second with 9.2%,and Drupal are third with 6.8%. Three products written in PHP.

Before we start talking about the recent achievements of the PHP community, let's look at some interesting data: 77.9% of the sites in the known server-side programming language are using PHP. Of all the sites in the world, 16.6% is the use of WordPress (the framework of the PHP language). Take a look at the top three cmses----Use the monitoring of the content management system of the site: WordPress to 54.3% of the rate ranked first, Joomla ranked second in 9.2% utilization, Drupal ranked third in 6.8% utilization rate. These three products are written in PHP.

Now, let me tell you a secret, the php ' Tour de force ':D espite the changes over the years, PHP is still the easiest Langua GE to learnfor non-technical people:it allows anyone to create dynamic websites Fasterthan with any other technologies, I T allows anyone to host websites cheaply andwithout any hassles. PHP is probably isn't the best designed language in TheWorld, but it lets you get things do, and you can ' t argue with that .

Now, let me tell you a secret, PHP's "stunt": Despite all the changes over the years, PHP is still the easiest language to learn for non-computer professionals: It allows anyone to create dynamic websites faster than any other technology, It allows anyone to create a website cheaply, use the website without any hassle. PHP may not be the best design language in the world, but it allows you to get things done and you can't refute that.

PHP, the Language (PHP language)

PHP 5.0 (released in 2004) brought us a very solid object model...wait a minute, I ' m talking about something released Almo St 8 years ago. Fastforward now. The latest PHP release, PHP 5.4, comes with all the bells andwhistles your might dream of in a modern web Language:yes, PH P supportsnamespaces; Yes, PHP supports closures; Yes, PHP supports traits.

PHP5.0 (released in 2004) brought us a very solid object model. Wait a minute, I've been talking about something 8 years ago. Time is fast, the latest release of PHP is PHP5.4, which comes with all the bells and whistles, which may be a modern web language for your dreams. , PHP supports namespaces; Yes, PHP support packages; Yes, PHP supports features.

It took some time, but PHP 5.4 also comes with some nice syntacticsugar that makes the whole experience better than ever: Yes, PHP supports [] todefine arrays; Yes, PHP supports calling a method on a newly created object ((New Foo ())->bar ()); Yes, PHP supports getting an array item from Anyexpression ($foo->bar () [1]).

It takes some time, but PHP5.4 also brings some good syntax, which makes all the experiences better than before. Yes, PHP supports [] to define the array; Yes, PHP supports invoking a method when creating a new object ((New Foo ())->bar ()); Yes, PHP supports getting an array from an expression.

PHP have even learned from its mistakes:register_globals andmagic_quotes is definitely gone.

PHP has learned the lessons of the past: the definition of register_globals and magic_quotes has been discarded.

Last, but isn't the least, PHP even comes with a built-in web serverthat eases local testing ... and it starts in a matter of Micro-seconds.

Last but not least, PHP even comes with a built-in Web server that can be tested locally. It started out as a matter of microseconds.

Next challenges:how do we ' upgrade all ' the old tutorialstalking about PHP on the web? What's the best-of-the-websockettechnology in a PHP application?

Next challenge: How do we upgrade all the old tutorials about PHP on the web? What is the best way to support websocket technology in a PHP application?

PHP, the Ecosystem (PHP ecosystem)

Have a good language is great, but have a great ecosystem iseven better. And the PHP ecosystem has evolved a IoT in the last few years.

Having good language is great, but having a big ecosystem is better. The PHP ecosystem has grown a lot in the last few years.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.