PHP Logos and annotations

Source: Internet
Author: User
Tags command line comments php file php code

Programming languages. PHP php:hypertext preprocessor hypertext Preprocessor early PHP Personal homepage Personal web page. A tool that can be clipped in HTML code to get database resources. In order to create dynamic Web site. See Data Source: Dynamic Web site? The page's data comes from a database (or other data source) and is presented to the user when the user needs to request a data that is obtained by our application language (PHP) in the database. Static Web site? The content of the Web site is stored in the file HTML. Cannot be changed, only HTML finishes can be modified. What is PHP capable of? Server-side scripting: Web sites are server-side scripts. If PHP acts as a server-side script, it requires a Web server and a Web browser to work. Command-line script: PHP code can be run on the command line. Sometimes we need to back up the database regularly, create the session directory and other functions, you can use the command line of PHP to complete. The command line executes PHP without the need for a Web server and a Web browser. For example, a command line script can also receive parameters: Take advantage of variable $argv (all parameters) and $ARGC (number of parameters) to receive.
Even support desktop programs: PHP's basic syntax: PHP Tags: why to use PHP Tags: because php file, not only can use PHP syntax, but also a direct write html,script and so on. means we need to identify in a file which parts need to be processed using PHP. PHP has 2 standard tags: <?php?> <script language= "php" > </script>
PHP also has two non-standard: short Tags: the?> is not recommended, if you need to use in the PHP configuration file to set: Short_open_tag to set:
ASP style Tags: <%%&gt, not recommended, you can use the configuration asp_tags to open:

A recommended practice is to omit the end tag when the entire document is a PHP document or the PHP tag is the last part of the document. Statement end semicolon In principle, each statement should follow one; But there is a special case: the end tag of PHP, which contains a quotation mark inside. means that if we have an end tag, then the last PHP statement can omit the semicolon. For example:
<?php echo $value?> But if there is no end tag, no:
Note: Only PHP code can be commented.
Line comments//# Block comments/*/Custom annotation Examples:
Suggest everyone write a note

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.