Current location - Training Enrollment Network - Mathematics courses - What is php?
What is php?
Introduction to PHP:

PHP is a back-end programming language, mainly used for background data processing ~ English name is Hypertext Preprocessor.

Beneficial grammar absorbs the characteristics of C language, Java and Perl, which is beneficial to learning and widely used, mainly in the field of Web development. The unique syntax of PHP is a mixture of C, Java, Perl and PHP's own syntax. It can execute dynamic web pages faster than CGI or Perl. Compared with other programming languages, dynamic pages made by PHP embed programs into HTML (an application under standard generalized markup language) documents for execution, and the execution efficiency is much higher than CGI which completely generates HTML tags. PHP can also execute compiled code, which can realize encryption and optimize code operation, making the code run faster.

Because the grammar of PHP is mixed with the essence of other languages, it is not difficult for us to learn, and PHP can do many things that other languages can't, such as PHP comes with SHA and MD5 encryption libraries, zip libraries can be added, and mysqli libraries can be added. In the past, when we used other languages, we needed to write our own function writing framework, and these operations could be realized directly in PHP. Now many websites use PHP as the background language.

Specific advantages of PHP:

Cool, there are zip libraries, mysqli libraries, SQL libraries, and so on.

Grammar introduction is basically as easy to learn as C++ and C and Java.

Security ~ Because the source code of PHP is open source, everyone has studied encryption programs ~

Easy to use, PHP is a cross-platform language ~

The environment is easy to install, such as macOS, and the system comes with PHP.

Figure: Number of PHP libraries

Specific usage of PHP:

Used for database operations, including entry, export, modification, deletion and other database operations.

Used for system operation and calling system programs. There are system functions in PHP, which can directly call the command line, including Windows and UNIX.

Used for web page optimization, such as encryption. PHP comes with the function of encrypting strings, which is very convenient to use.

PHP example in practice:

Tencent basically uses PHP+CPP architecture for all backstage.

Even that disgusting website, the number one website in the world, is PHP.

WordPress is the CMS template of PHP.

ThinkPHP, like the template of CMS.

Figure: The actual use of PHP

blackberry

Facebook

I refer to my other answer: network link.