Home  >  Article  >  Backend Development  >  Can PHP go further in the Web 2.0 era_PHP Tutorial

Can PHP go further in the Web 2.0 era_PHP Tutorial

WBOY
WBOYOriginal
2016-07-15 13:25:12740browse

With the advent of the so-called WEB2.0 era, programmers have never received as much attention as they do today, and the debate among many programmers about languages ​​has never been as fierce as it is today, such as JAVA, C++, PHP, ASP, etc. Wait, recently another Ruby came out, plus Python. Countless FANS are arguing in the middle, that is, on the Internet, if it is in real life, it will probably be like what is described in "The Legend of Heaven and Dragon Sword", where they will fight Guangmingding to determine the outcome, or determine the number one in the world. A sect. Now it is actually very convenient to determine who is the best in the world. Just look at the number of disciples under which language. The most popular statistical method now is Google. If you look at Google's search results, you can basically judge its usage on the websites on the market
◆There are about 5,760,000,000 query results that match PHP
◆ There are about 3,070,000,000 query results that are in compliance with asp
◆There are about 976,000,000 query results that are in compliance with java
◆There are about 327,000,000 query results that are in compliance with perl
◆There are about 238,000,000 query results that are in compliance with python
◆About 225,000,000 query results that conform to C++
◆There are approximately 176,000,000 query results that conform to Ruby

During this period, Ge You’s bare head was frequently exposed, and he always kept telling us one truth— —A card that is used by many people is a good card. And if we apply the words of this bald star, that is, I believe in the people. From the results of the above query, you can see that the people love PHP very much.

But if you ask some senior developers on the Internet, who is better among PHP, ASP and Java? Generally speaking, this person will tell you that you don’t have to think about ASP, it is produced by Microsoft. Rubbish, PHP and Java are good choices. Java is suitable for large projects, and PHP is suitable for doing short and fast things. If you continue to ask, and the expert has not lost his patience, he will probably say that eBay, the world's largest interactive platform, is written in JAVA, China's largest community CHINAREN Alumni Directory is also JAVA, and many small The website was initially based on PHP, but later it had to be changed to JAVA for various reasons. This feeling is like saying, if you want to learn martial arts so that you can go out and kill people, or make a name for yourself in the world, then you don’t need to practice Marching Boxing. This thing is used by the government to strengthen the body, the Five Tigers Broken Door Knife This thing is more than enough for you to deal with ordinary gangsters, but you will give up when you encounter a top master. Java is a bit like Tai Chi. The most popular martial art of SUN, one of the largest martial arts sects today, is the best choice for defeating masters. Therefore, many people believe that PHP is a low-level martial arts, and the best results will be obtained by practicing it. If you look at the casino, you can become a martial arts leader only if you master Java.

When I talked with technical managers of many companies, the managers said that many people have this mentality. He uses Java, and if you ask him to write PHP, many people will feel insulted. I either feel that the manager doesn't take him seriously, or I'm thinking about when I offended the manager and was sent to a remote place like PHP. The larger the company, the more difficult it is to develop PHP projects. This makes many technical bosses very depressed, but it is also very strange. So, below, let’s analyze the formation of this language that is recognized by the people but not favored by many developers-PHP.

PHP entered China in 1998 or 1999. When it entered, the typical early application was Chinaren alumni directory, and there were many interactive applications. It quickly became the choice of many websites due to its ease of development and good fault tolerance. . In 2000 and 2001, during the Internet bubble, many websites were developed using PHP. Its popularity is due to the following reasons:

Compatible with C syntax, easy to master

In this regard, it ensures a stable source of developers. Basically, everyone who studies computer science has learned C language, so they can master it quickly in about one to two weeks. New language, and then with simple guidance, you can start initial development work. In terms of the development of the program itself, there is not much difference between a programmer who has been writing for more than three years and a PHP programmer who has been developing for more than half a year.

It runs fast

On the Internet, speed is a very important issue. In this regard, even people who are very disdainful of PHP have to admit that PHP The running speed is quite satisfactory, but since there is no very practical data, it is just the feeling of many people, so there is no very strong evidence to prove this.

Very strong fault tolerance, very good robust performance

Many people who write PHP should feel this way. For example, you apply for a variable in PHP , it can be used as a number, it can be used as an array, or it can be used as a string. Sometimes I wonder how it can ensure efficiency with such a casual style. I can only say that the person who wrote this language compiler is really incredible.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446698.htmlTechArticleWith the advent of the so-called WEB2.0 era, programmers have never received as much attention as they do today. Many programmers The debate over language has never been as fierce as it is today, JAVA, C++, PH...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn