Home >Backend Development >PHP Problem >What type of language is php?

What type of language is php?

(*-*)浩
(*-*)浩Original
2019-09-26 15:01:074947browse

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 for the web. development.

What type of language is php?

The above is a simple answer, but what does it mean? Please see the following example:

An introductory example (Recommended learning: PHP programming from entry to proficiency)

<html>
    <head>
        <title>Example</title>
    </head>
    <body>

        <?php
        echo "Hi, I&#39;m a PHP script!";
        ?>

    </body>
</html>

Please pay attention to this example The difference between other scripts written in C or Perl language - unlike using a large number of commands to write a program to output HTML, a PHP page is HTML, but with some code embedded in it to do something (in In this example, "Hi, I'm a PHP script!" is output.)

PHP code is included in the special start and end characters 815b22acdbf9dab14aa760b8cd72f36d, making it possible to enter and exit "PHP mode".

Different from client-side JavaScript, 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 the web server to let PHP handle all HTML files, so users have 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.

The above is the detailed content of What type of language is php?. 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