Home  >  Article  >  Backend Development  >  What is php abbreviation for?

What is php abbreviation for?

步履不停
步履不停Original
2019-06-12 13:55:436349browse

What is php abbreviation for?

php is a hypertext preprocessing language and is the abbreviation of the full name of Hypertext Preprocessor.

What is PHP?

PHP ("PHP: Hypertext Preprocessor", abbreviation of Hypertext Preprocessor) is a widely used open source multi-purpose scripting language. It can be embedded into HTML and is especially suitable forwebdevelopment.

The above is a simple answer, but what does it mean? Take a look at the following example:

Example #1 An introductory example

<html>
    <head>
        <title>Example</title>
    </head>
    <body>
        <?php
        echo "Hi, I&#39;m a PHP script!";
        ?>
    </body>
</html>

Please note the difference between this example and other scripts written in C or Perl language-and use a large number of command to write a program to output HTML. The difference is that a PHP page is just HTML with some code embedded in it to do something (in this case output "Hi, I'm a PHP script!"). PHP code is included in the special start and end characters 2d3d2f1961da9d96890341c61d274b0c , making it possible to enter and exit "PHP mode".

The difference from the client's JavaScript is that the PHP code runs on the server side. If you build code similar to the example above on the server, after running the script, the client will receive the results, but they will have no way of knowing how the code behind it works. You can even set up the web server to let PHP handle all HTML files, so the user has no way of knowing what the server is doing.

One of the great benefits of using PHP is that it is extremely simple for beginners, while also providing a variety of advanced features for professional programmers. Don’t be afraid when you see PHP’s long list of features. You can get started quickly, and you can write some simple scripts in just a few hours.

Although PHP is developed for the purpose of server-side scripting, in fact its functions are far from limited to this. Please continue reading the following chapters, you will get more information in the "What PHP can do" section. If you are interested in web programming, you can also read the concise tutorial.

The above is the detailed content of What is php abbreviation for?. For more information, please follow other related articles on the PHP Chinese website!

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
Previous article:How about php languageNext article:How about php language