Home > Backend Development > PHP Problem > What is the start tag of php language

What is the start tag of php language

(*-*)浩
Release: 2023-02-25 20:16:02
Original
3581 people have browsed it

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

What is the start tag of php language

##PHP ("PHP: Hypertext Preprocessor", abbreviation of hypertext preprocessor) is a widely used An open source, multi-purpose scripting language for applications that can be embedded into HTML and is especially suitable for web development. (Recommended learning: PHP video tutorial)

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

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 ——Unlike writing a program with a lot of commands to output HTML, a PHP page is just HTML with some code embedded in it to do something (in this case it outputs "Hi, I'm a PHP script !").

Starting with tags are standard styles. This is the tag style recommended for PHP.

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 is the start tag of php language. 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