First of all explain why I want to write such a study series: I have been in touch with PHP development for more than a year, the period for self-study (the university did not open a PHP course and did not attend any training courses). In the whole learning process, the knowledge system is very fragmented, not a regulation. Although during the period also read some books, but in the current work, still feel the knowledge of PHP is not deep enough, in order to form a complete knowledge system, decided to start today with a new PHP learning, a period of 20 days, will encounter, the sense of the realization of the record down.
Let's first declare that PHP is one of the best languages in the world.
PHP is the abbreviation of PHP hypertext Preprocesseror Hypertext Preprocessor, the current version already to 7, is a kind of object-oriented (in the middle of the 5 version before the process-oriented), Cross-platform (Windows/linux/unix), open source, A server-side scripting language suitable for web development.
PHP language is a server-side scripting language that requires a script interpreter to ensure the correct execution of PHP scripts and is currently used by the Zend engine.
The PHP language experienced two phases of process-oriented programming (prior to PHP 5), similar to C/C + +, and object-oriented programming (after PHP 5), similar to those of Java + +.
PHP language in the previous version of PHP 3 is the way to execute the edge of the compiler, and the overall code coupling is high, poor scalability. The second issue was resolved in the PHP 3.0 version, and the first was resolved after the introduction of the Zend Engine (PHP 4).
PHP is currently developing a good situation, a variety of communities are relatively perfect, the current version has been to 7, and performance compared to the previous has a great upgrade. But the Tiobe website programming language version shows, PHP in recent years ranking has been falling, gradually by Python and other scripts beyond, I currently have the intention to learn python.
The application scenario for the PHP language:
(1) The development of a variety of small and medium-sized websites
(2) server-side scripting language development, used as Openapi
PHP language is simple, easy to start, and and MySQL, Nginx, Linux These are golden combination, and are open source software, so, PHP is the preferred language for web development.
The PHP language provides an extension library to extend the functionality of PHP, which provides many functions, such as curl requests, GD paint, and MySQL links, through which we can invoke many functions and simplify many of our code.
On the Windows platform and Linux platform, PHP has a different extension library suffix, Linux for. So,windows is a. dll, and the extension is very similar: Extend the extension to PHP's extended directory, modify the php.ini configuration file, introduce the extension, and finally the PHP-FPM service, through the Phpinfo function to see if the extension is really introduced.
There are many open source extensions on the Web, and PHP provides extensions to expand libraries, and companies and individuals can tailor their development to their own business needs.
How to learn PHP language well
(1) To have a clear learning objectives and learning direction, have their own learning plan, and persevere to go on.
(2) to build a good building must first start with a good foundation, pay more attention to the basic knowledge of language
(3) It is normal to encounter problems, but don't be impatient. Analyze the problem first and then solve the problem according to the idea. If you can't solve the problem after you try, ask for help, but remember to ask for help when you encounter problems. On the face of it, the problem is solved, but its ability has not been promoted. There is a fundamental difference between finding and solving problems, and only the primary programmers are the ones who find and try to solve the problem, and the senior programmers who find and solve the problem are the mid-level programmers.
(4) Language learning can not be closed, we must communicate more with others, but also through the way of blogging to speak their sense of the realization of the record down, so that the ability to describe their own language is a kind of exercise and promotion
(5) practice is greater than theory, must not only stay in the theoretical study stage, must be more practice, through practice to consolidate theoretical knowledge.
Reference Blog: PHP version history