What is php abbreviation for?

步履不停
Release: 2023-02-23 08:04:01
Original
6426 people have browsed it

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>
Copy after login

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 <?php and ?> , 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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template